mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
update UninitCell::write call in arch::wasm too
This commit is contained in:
parent
3a1ed823f8
commit
b9d4b18f14
@ -73,9 +73,10 @@ mod thread {
|
||||
pub fn start(&'static mut self, init: impl FnOnce(Spawner)) {
|
||||
unsafe {
|
||||
let executor = &self.inner;
|
||||
self.ctx.closure.write(Closure::new(move |_| {
|
||||
let future = Closure::new(move |_| {
|
||||
executor.poll();
|
||||
}));
|
||||
});
|
||||
self.ctx.closure.write_in_place(|| future);
|
||||
init(self.inner.spawner());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user