From cbea07716b49d026506a61d261a551ff62c1b6c3 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 3 Feb 2021 05:01:30 +0100 Subject: [PATCH] Set alarm in std executor --- embassy-std/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-std/src/lib.rs b/embassy-std/src/lib.rs index aabbe237..29f4de42 100644 --- a/embassy-std/src/lib.rs +++ b/embassy-std/src/lib.rs @@ -116,6 +116,7 @@ impl Executor { /// This function never returns. pub fn run(&'static mut self, init: impl FnOnce(Spawner)) -> ! { self.inner.set_signal_ctx(&self.signaler as *const _ as _); + self.inner.set_alarm(&StdAlarm); init(unsafe { self.inner.spawner() });