From 90181cb3efffb4cacffdc0f3fca27a8ecf3a856e Mon Sep 17 00:00:00 2001 From: Hengchu Zhang Date: Mon, 15 Jun 2020 12:55:03 -0400 Subject: [PATCH] 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`? --- actix-rt/src/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-rt/src/builder.rs b/actix-rt/src/builder.rs index 29963703..76ff75d5 100644 --- a/actix-rt/src/builder.rs +++ b/actix-rt/src/builder.rs @@ -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) }