[][src]Crate delay_timer

DelayTimer is a cyclic task manager with latency properties, based on an internal event manager and task scheduler, and supported by the runtime provided by smol, which makes it easy to manage asynchronous/synchronous/scripted cyclic tasks.

DelayTimer

User applications can be served through the lib used by DelayTimer:

  1. Mission deployment.

Re-exports

pub use cron_clock;
pub use generate_fn_macro::*;
pub use timer::runtime_trace::task_handle::DelayTaskHandler;
pub use timer::task::Frequency;
pub use timer::task::Task;
pub use timer::task::TaskBuilder;

Modules

delay_timer

DelayTimer is a cyclic task manager with latency properties, based on an internal event manager and task scheduler, and supported by the runtime provided by smol, which makes it easy to manage asynchronous/synchronous/scripted cyclic tasks.

future_lite

Combinators for the Future trait.

generate_fn_macro

generate_fn_macro contains a simple macro that is used to generate a closure function that we use for task building. (use this macro with the caveat that variables captured inside the block can be reused, if you need to create closures dynamically, refer to generate_closure_template in convenience mod).

timer

timer is the core module of the library , it can provide an API for task building , task scheduling , event handling , resource recovery .

utils

utils is a tool module that provides easy shell-command parsing, and functions that generate closures.

Macros

create_async_fn_body

Create a closure that return a DelayTaskHandel by macro.

Functions

async_spawn

Spawns a task onto the global executor (single-threaded by default).

unblock_spawn

Runs blocking code on a thread pool.