docs(sched): 📝 improve documentation
This commit is contained in:
parent
51a83371c6
commit
3a64661b0f
97
.github/img/unimplemented.svg
vendored
Normal file
97
.github/img/unimplemented.svg
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 274 24" style="enable-background:new 0 0 274 24;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{enable-background:new ;}
|
||||
.st1{fill:#FFB74D;}
|
||||
</style>
|
||||
<g class="st0">
|
||||
<path class="st1" d="M46.8,15.9h-0.1c-0.5,1-1,1.9-1.7,2.5c-0.6,0.6-1.5,0.9-2.5,0.9c-0.6,0-1.2-0.1-1.6-0.3s-0.8-0.5-1.1-0.8
|
||||
c-0.3-0.3-0.5-0.7-0.6-1.2c-0.1-0.5-0.2-0.9-0.2-1.4c0-0.4,0-0.7,0.1-1.1c0-0.4,0.1-0.9,0.2-1.5l1.2-6.9H44l-1.2,7.3
|
||||
c0,0.2-0.1,0.5-0.1,0.7c0,0.2-0.1,0.5-0.1,0.9c0,0.2,0,0.3,0.1,0.5c0,0.2,0.1,0.3,0.3,0.5c0.1,0.1,0.3,0.3,0.5,0.4
|
||||
c0.2,0.1,0.4,0.1,0.7,0.1c0.4,0,0.8-0.1,1.1-0.3c0.3-0.2,0.6-0.5,0.9-0.9c0.2-0.2,0.4-0.6,0.7-1c0.3-0.4,0.4-0.9,0.5-1.5l1.1-6.7
|
||||
h3.6L49.9,19h-3.6L46.8,15.9z"/>
|
||||
<path class="st1" d="M53.3,19l2.1-12.9h3.6l-0.5,3.1h0.1c0.5-1,1-1.9,1.7-2.5c0.6-0.6,1.5-0.9,2.5-0.9c0.6,0,1.2,0.1,1.6,0.3
|
||||
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-0.2,2.7-0.6,4c-0.4,1.3-0.9,2.5-1.5,3.6c-0.6,1.1-1.4,2.1-2.2,3.1c-0.9,0.9-1.8,1.7-2.7,2.3
|
||||
h-3.6c0.9-0.6,1.7-1.3,2.5-2.1c0.8-0.7,1.5-1.5,2.1-2.4c0.6-0.8,1.1-1.7,1.6-2.6c0.4-0.9,0.7-1.8,0.9-2.8l0.4-2.4
|
||||
c0-0.3,0.1-0.6,0.1-0.8c0-0.2,0-0.5,0-0.7c0-0.8-0.1-1.6-0.3-2.5c-0.2-0.8-0.5-1.6-0.9-2.4c-0.4-0.8-0.8-1.5-1.2-2.1
|
||||
c-0.5-0.7-0.9-1.3-1.5-1.8h3.3c0.5,0.5,1,1.1,1.4,1.8c0.4,0.7,0.8,1.4,1.2,2.2c0.3,0.8,0.6,1.7,0.8,2.6C273.9,7.5,274,8.4,274,9.4z
|
||||
"/>
|
||||
</g>
|
||||
<path class="st1" d="M16,0L0,24h32L16,0z M18,22h-4v-4h4V22z M14,16V8h4v8H14z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.7 KiB |
@ -25,31 +25,48 @@ cargo add lool --registry=lugit --features sched {sub-feature}
|
||||
|
||||
# Sub-Features
|
||||
|
||||
## Runtimes
|
||||
|
||||
### <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a> sched.tokio
|
||||
At least one of the following features must be enabled to use this library.
|
||||
|
||||
Enables the `tokio` runtime support, replacing the default behaviour, which implies a `std::thread`
|
||||
pool to run the tasks.
|
||||
- <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a>
|
||||
**sched.tokio**: Enables the `tokio` runtime support.
|
||||
|
||||
> [!WARNING]
|
||||
>
|
||||
> Not yet implemented
|
||||
- <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a>
|
||||
**sched.threads**: Enables the `std::thread` runtime support.
|
||||
|
||||
### <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a> sched.rule-recurrent
|
||||
- <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a>
|
||||
**sched.thread-pool**: Enables the `std::thread` runtime support with a thread
|
||||
pool <img alt="unimplemented" src="../../.github/img/unimplemented.svg" height="12">
|
||||
|
||||
Enables the "**recurrent-rule**" style for scheduling tasks.
|
||||
## Scheduling Rules
|
||||
|
||||
### <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a> sched.rule-cron
|
||||
The default way to schedule tasks is to use a `DateTime` object. However, that means that the task
|
||||
will only run once. To schedule tasks to run at specific intervals, you can use the following
|
||||
features:
|
||||
|
||||
- <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a>
|
||||
**sched.rule-recurrent**: Enables the "**recurrent-rule**" style for scheduling tasks.
|
||||
|
||||
- <a href="#"><img alt="has subfeatures" src="../../.github/img/icon-has-submodules.svg" height="12"></a>
|
||||
**sched.rule-cron**: Enables the "cron-like" style for scheduling tasks
|
||||
|
||||
> [!WARNING]
|
||||
>
|
||||
> Not yet implemented
|
||||
|
||||
## Planned Features
|
||||
|
||||
- `sched.rule-cron`: Enables the "cron-like" style for scheduling tasks
|
||||
- `sched.rule-pyschedule`: Enables the [python schedule](https://pypi.org/project/schedule/)-like
|
||||
- **sched.rule-pyschedule**: Enables the [python schedule](https://pypi.org/project/schedule/)-like
|
||||
style for scheduling tasks
|
||||
- **sched.thread-pool**: Enables the `std::thread` runtime support with a thread pool (like
|
||||
[scheduled-thread-pool](https://crates.io/crates/scheduled-thread-pool) crate but using `lool`'s
|
||||
thread pool implementation)
|
||||
|
||||
|
||||
# Usage
|
||||
|
||||
Check the [examples](../../examples) directory for usage examples:
|
||||
|
||||
- [tokio](../../examples/sched_tokio.rs): using the `tokio` runtime
|
||||
- [threads](../../examples/sched.rs): using the `std::thread` runtime
|
||||
|
||||
# Inspiration
|
||||
|
||||
@ -65,15 +82,3 @@ This library is inspired by several other libraries, including:
|
||||
- [python's schedule](https://pypi.org/project/schedule/): a simple python scheduler with
|
||||
a human-friendly API
|
||||
|
||||
|
||||
Other useful libraries that might come in handy for this project during development are:
|
||||
|
||||
- https://crates.io/crates/tokio-cron-scheduler
|
||||
- https://crates.io/crates/clokwerk
|
||||
- https://crates.io/crates/cron_tab
|
||||
- https://crates.io/crates/multithreading
|
||||
- https://crates.io/crates/multithreading
|
||||
- https://crates.io/crates/threadpool
|
||||
- https://crates.io/crates/blocking
|
||||
- https://crates.io/crates/scheduled-thread-pool
|
||||
- https://crates.io/crates/clokwerk
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user