diff options
author | cuobiezi <liujw22@gmail.com> | 2022-07-12 01:02:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 19:02:23 +0200 |
commit | 83818c914b6bd3e0d9323117b760f08d13d295e7 (patch) | |
tree | 14a7f11d301564f5042be4ac1d910e61ffb515b7 /runtime/tokio_util.rs | |
parent | 12df9f367926ef73223a0aebd2e4dc0aaec4774e (diff) |
refactor: rename run_basic to run_local (#15068)
Diffstat (limited to 'runtime/tokio_util.rs')
-rw-r--r-- | runtime/tokio_util.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/tokio_util.rs b/runtime/tokio_util.rs index 25693ae55..52888abe4 100644 --- a/runtime/tokio_util.rs +++ b/runtime/tokio_util.rs @@ -14,8 +14,7 @@ pub fn create_basic_runtime() -> tokio::runtime::Runtime { .unwrap() } -// TODO(ry) rename to run_local ? -pub fn run_basic<F, R>(future: F) -> R +pub fn run_local<F, R>(future: F) -> R where F: std::future::Future<Output = R>, { |