diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-23 16:27:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 16:27:44 -0400 |
commit | 675919e915650cd1c88a1cdb4f67310133b8a05e (patch) | |
tree | a86a6029982d681cbf21e7ee76dbc3b31c5434e5 /cli/compiler.rs | |
parent | 6caf8655070211d9771d349492c18d56c03b12b8 (diff) |
Use tokio_threadpool's new panic_handler (#2188)
Diffstat (limited to 'cli/compiler.rs')
-rw-r--r-- | cli/compiler.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/compiler.rs b/cli/compiler.rs index ae4e3419f..d327835d3 100644 --- a/cli/compiler.rs +++ b/cli/compiler.rs @@ -35,7 +35,7 @@ lazy_static! { static ref C_RID: Mutex<Option<ResourceId>> = Mutex::new(None); // tokio runtime specifically for spawning logic that is dependent on // completetion of the compiler worker future - static ref C_RUNTIME: Mutex<Runtime> = Mutex::new(Runtime::new().unwrap()); + static ref C_RUNTIME: Mutex<Runtime> = Mutex::new(tokio_util::create_threadpool_runtime()); } // This corresponds to JS ModuleMetaData. @@ -111,8 +111,6 @@ fn lazy_start(parent_state: ThreadSafeState) -> ResourceId { let mut runtime = C_RUNTIME.lock().unwrap(); runtime.spawn(lazy(move || { - tokio_util::abort_on_panic(); - worker.then(move |result| -> Result<(), ()> { // Close resource so the future created by // handle_worker_message_stream exits |