This commit is contained in:
John Smith
2023-07-02 16:23:04 -05:00
parent e457c0bcc6
commit b5906a52bc
8 changed files with 59 additions and 53 deletions

View File

@@ -23,8 +23,9 @@ impl<T> MustJoinHandle<T> {
} else if #[cfg(feature="rt-tokio")] {
self.join_handle = None;
} else if #[cfg(target_arch = "wasm32")] {
self.join_handle.take().detach();
self.completed = true;
if let Some(jh) = self.join_handle.take() {
jh.detach();
}
} else {
compile_error!("needs executor implementation")
}