Skip to content

Why spawned tasks must me Send in single-threaded executor? #4817

Answered by Darksonn
wyfo asked this question in General
Discussion options

You must be logged in to vote

Because the Runtime object itself can be moved between threads. The LocalSet type avoids this by not being Send.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wyfo
Comment options

Answer selected by wyfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants