Skip to content

Why does spawn for a single thread runtime require Send ? #4998

Answered by Darksonn
tsuberim asked this question in Q&A
Discussion options

You must be logged in to vote

The Runtime object itself is Send, so you can still send it across threads. Use a LocalSet if you want non-Send tasks.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tsuberim
Comment options

@Noah-Kennedy
Comment options

@Darksonn
Comment options

Answer selected by tsuberim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants