You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to solve this question ? I want to use context in 'thread::spawn' block ! The error message is blow :
error[E0277]: std::rc::Weak<ContextImpl> cannot be sent between threads safely
--> src/event_channels.rs:154:32
|
154 | sender.send(move || {
| ^^^^ std::rc::Weak<ContextImpl> cannot be sent between threads safely
|
= help: within event_channels::EventChannels, the trait std::marker::Send is not implemented for std::rc::Weak<ContextImpl>
= note: required because it appears within the type nativeshell::Context
The text was updated successfully, but these errors were encountered:
How to solve this question ? I want to use context in 'thread::spawn' block ! The error message is blow :
error[E0277]:
std::rc::Weak<ContextImpl>
cannot be sent between threads safely--> src/event_channels.rs:154:32
|
154 | sender.send(move || {
| ^^^^
std::rc::Weak<ContextImpl>
cannot be sent between threads safely|
= help: within
event_channels::EventChannels
, the traitstd::marker::Send
is not implemented forstd::rc::Weak<ContextImpl>
= note: required because it appears within the type
nativeshell::Context
The text was updated successfully, but these errors were encountered: