-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose the Aggregator instead of a handle to abort it
As discussed in code review, for such a low level api as `Server::into_parts`, it makes sense to allow the user to spawn the aggregator where they like, rather than spawning it internally. Since I couldn't find a way to return and use a `dyn Future` (boxed or otherwise), the `Aggregator` has been made public with a (async) single function `run()` which will start it's run loop.
- Loading branch information
Showing
2 changed files
with
44 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters