-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow naming tasks to differentiate actors in tokio-console. (#4451)
* Allow naming tasks to differentiate actors in tokio-console. By default, tokio-console labels its task using its spawning point. Since all actors are spawned from the same place they end up with the same label. This introduce an API to optionally name tasks. For actors, the actor's struct Name is used automatically. If tokio-console is not enabled, this is no cost. * Allow naming tasks to differentiate actors in tokio-console. By default, tokio-console labels its task using its spawning point. Since all actors are spawned from the same place they end up with the same label. This introduce an API to optionally name tasks. For actors, the actor's struct Name is used automatically. If tokio-console is not enabled, this is no cost.
- Loading branch information
1 parent
a2e3b92
commit 9eef3bb
Showing
9 changed files
with
162 additions
and
88 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.