Why does tokio::task::Builder::spawn return a Result? #6946
Unanswered
hirschenberger
asked this question in
Q&A
Replies: 1 comment
-
I believe this is partially for consistency with the standard library's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
tokio::spawn
does not and it seems the Err variant is not returned anywhere:https://github.com/tokio-rs/tokio/blob/master/tokio/src/task/builder.rs#L93
Beta Was this translation helpful? Give feedback.
All reactions