aboutsummaryrefslogtreecommitdiff
path: root/examples/t-schedule.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-04-20 17:06:08 +0000
committerGitHub <noreply@github.com>2021-04-20 17:06:08 +0000
commit99a53c7ca7648a38899f8f042d2b4f4dbbeccdd6 (patch)
treedf162ac226e95185b1aecdc2433ff2ba11a5baae /examples/t-schedule.rs
parentf586c3c5a8a14e37d69d229fd6e69459a6074cc4 (diff)
parentfbcf2aabb0e5fdb1aa4f620b92c49ba57a5dce6a (diff)
Merge #477
477: Fix for default monotonic, `monotonics::now()` now properly works r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'examples/t-schedule.rs')
-rw-r--r--examples/t-schedule.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs
index 5e38dba..d705160 100644
--- a/examples/t-schedule.rs
+++ b/examples/t-schedule.rs
@@ -40,7 +40,7 @@ mod app {
let _: Result<(), ()> = handle.unwrap().cancel();
// Using default
- let _: Result<foo::SpawnHandle, ()> = foo::spawn_at(monotonics::MyMono::now());
+ let _: Result<foo::SpawnHandle, ()> = foo::spawn_at(monotonics::now());
let handle: Result<foo::SpawnHandle, ()> = foo::spawn_after(Seconds(1_u32));
let _: Result<foo::SpawnHandle, ()> = handle.unwrap().reschedule_after(Seconds(1_u32));