summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index 5424860db..079e772b6 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -243,7 +243,8 @@ impl WebWorkerHandle {
/// This function will set the termination signal, close the message channel,
/// and schedule to terminate the isolate after two seconds.
pub fn terminate(self) {
- use std::thread::{sleep, spawn};
+ use std::thread::sleep;
+ use std::thread::spawn;
use std::time::Duration;
let schedule_termination =