We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a means to get the ID of a worker that is spawned on a Runtime?
Runtime
oneshot::spawn_fn( || { eprintln!("processing on worker {}", ???); doing_thing() }, &DefaultExecutor::current() )
The text was updated successfully, but these errors were encountered:
This is not possible. Why do you need to get the ID of the worker? Is it just for debugging or do you have another use case in mind?
Sorry, something went wrong.
Debugging is one use case, as is displaying to the end user that tasks are being processed on multiple threads.
I think the right way to provide this info for debugging will be via Tokio trace here.
tracing
Tracking this in #1186.
No branches or pull requests
Is there a means to get the ID of a worker that is spawned on a
Runtime
?The text was updated successfully, but these errors were encountered: