mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Updated spawn_after
docs
This commit is contained in:
parent
3a64a3e276
commit
08a37d6d3d
1 changed files with 3 additions and 0 deletions
|
@ -275,6 +275,9 @@ pub fn codegen(
|
||||||
|
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
/// Spawns the task after a set duration relative to the current time
|
/// Spawns the task after a set duration relative to the current time
|
||||||
|
///
|
||||||
|
/// This will use the time `Instant::new(0)` as baseline if called in `#[init]`,
|
||||||
|
/// so if you use a non-resetable timer use `spawn_at` when in `#[init]`
|
||||||
pub fn spawn_after<D>(
|
pub fn spawn_after<D>(
|
||||||
duration: D
|
duration: D
|
||||||
#(,#args)*
|
#(,#args)*
|
||||||
|
|
Loading…
Reference in a new issue