From 08a37d6d3d7e7f599c7d5b2723ed15d8355963d1 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Tue, 2 Mar 2021 19:31:47 +0100 Subject: [PATCH] Updated `spawn_after` docs --- macros/src/codegen/module.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs index 41f5b22a77..75435b549e 100644 --- a/macros/src/codegen/module.rs +++ b/macros/src/codegen/module.rs @@ -275,6 +275,9 @@ pub fn codegen( #(#cfgs)* /// 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( duration: D #(,#args)*