diff options
Diffstat (limited to 'cli/tokio_util.rs')
-rw-r--r-- | cli/tokio_util.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cli/tokio_util.rs b/cli/tokio_util.rs index 017013b3b..df14d11e4 100644 --- a/cli/tokio_util.rs +++ b/cli/tokio_util.rs @@ -15,16 +15,3 @@ where .expect("Unable to create Tokio runtime"); rt.block_on(future); } - -pub fn run_on_current_thread<F>(future: F) -where - F: Future<Output = ()> + Send + 'static, -{ - let mut rt = runtime::Builder::new() - .basic_scheduler() - .enable_all() - .thread_name("deno") - .build() - .expect("Unable to create Tokio runtime"); - rt.block_on(future); -} |