Consider implementing JoinHandle::try_join #6488
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-task
Module: tokio/task
Consider the following code using a
JoinHandle
:I think that it would a bit more ergonomic to be able to just do:
As pointed out on Discord, there is the issue that that
handle.await
will panic if called afterhandle.try_join
returns notNone
.The text was updated successfully, but these errors were encountered: