Expose fn build_async in builder

Currently, the `System::run_in_tokio` method uses `build_async`, but `build_async` itself is not exposed. This hides certain customization options on the builder if a user would like to provide a tokio local set manually. Would it be OK to completely expose `build_async`?
This commit is contained in:
Hengchu Zhang 2020-06-15 12:55:03 -04:00 committed by GitHub
parent 7140c04c44
commit 90181cb3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ impl Builder {
/// Create new System that can run asynchronously.
///
/// This method panics if it cannot start the system arbiter
pub(crate) fn build_async(self, local: &LocalSet) -> AsyncSystemRunner {
pub fn build_async(self, local: &LocalSet) -> AsyncSystemRunner {
self.create_async_runtime(local)
}