commit 75a951972a0f390b678330b515c4c0c3fa43ed0c
parent 51ef9a987b63cee82a33b0ad62e40748f600dfcf
Author: Jackson G. Kaindume <seestem@protonmail.com>
Date: Sun, 18 Jul 2021 10:47:38 +0200
update README
Diffstat:
D | README | | | 47 | ----------------------------------------------- |
1 file changed, 0 insertions(+), 47 deletions(-)
diff --git a/README b/README
@@ -1,46 +0,0 @@
- ┌─┐┬ ┬┌┐┌┌─┐┌─┐┬ ┬┌─┐┌┬┐┬ ┬┬ ┌─┐┬─┐
- ├┤ │ ││││└─┐│ ├─┤├┤ │││ ││ ├┤ ├┬┘
- └ └─┘┘└┘└─┘└─┘┴ ┴└─┘─┴┘└─┘┴─┘└─┘┴└─
-
-----------------------------------------------------------------------
- Time based function execution scheduler
-----------------------------------------------------------------------
-
- use funscheduler::{FunScheduler, Timing};
-
- fn main() {
- // Execute job every five seconds
- FunScheduler::interval(job, Timing::Seconds(5));
- }
-
- fn job() {
- println!("Hello, world");
- }
-
-----------------------------------------------------------------------
- Timing configurations
-----------------------------------------------------------------------
-
- Timing::Seconds(1)
- Timing::Minutes(25)
- Timing::Hours(2)
- Timing::Days(1)
-
-----------------------------------------------------------------------
- Job runners, different methods to execute the function
-----------------------------------------------------------------------
-
- // Evaluates a function at specified intervals, starting now
- FunScheduler::interval(job, Timing::Seconds(1))
-
- // Evaluates a function at specified intervals, does not execute
- // the function immedialy
- FunScheduler::rinterval(job, Timing::Seconds(1))
-
- // Execute function once after a specified amount of time
- FunScheduler::after(job, Timing::Seconds(1))
-
-
-.-{ seestem@protonmail.com ⧉ }-------------------------------------.
-| Written and placed in the public domain by Jackson G. Kaindume |
-'--------------------------------------------------------------[2021]+
-\ No newline at end of file