summaryrefslogtreecommitdiff
path: root/runtime/tokio_util.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-09-24 18:35:35 -0400
committerGitHub <noreply@github.com>2021-09-25 00:35:35 +0200
commit683a38e47c47609d28bc6964f4b082885e477bf3 (patch)
tree42f513fd5c5a67506e59a62a32a5afa9fd49b70f /runtime/tokio_util.rs
parentd0e14ae82cf05b1d854df4da37e2152cd09664a4 (diff)
refactor: Remove unused code (#12210)
Diffstat (limited to 'runtime/tokio_util.rs')
-rw-r--r--runtime/tokio_util.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/tokio_util.rs b/runtime/tokio_util.rs
index 5ee45325d..7a6f4d49e 100644
--- a/runtime/tokio_util.rs
+++ b/runtime/tokio_util.rs
@@ -13,12 +13,3 @@ pub fn create_basic_runtime() -> tokio::runtime::Runtime {
.build()
.unwrap()
}
-
-// TODO(ry) rename to run_local ?
-pub fn run_basic<F, R>(future: F) -> R
-where
- F: std::future::Future<Output = R>,
-{
- let rt = create_basic_runtime();
- rt.block_on(future)
-}