Skip to content

Is it possible to put mpsc channel into a state #584

Answered by msrd0
oOBoomberOo asked this question in Q&A
Discussion options

You must be logged in to vote

This looks like a similar problem to #570 - it might not be possible to store that sender in the state if it isn't unwind safe.

I guess the work around would be to not store non-unwind safe structs in the state? You can always store them somewhere else (e.g. in a static variable) and use that from your handler - handler's are just Rust functions after all.

Replies: 1 comment 1 reply

Comment options

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

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