Send + Sync Signals #1568
Labels
desktop
Suggestions related to the desktop renderer
enhancement
New feature or request
signals
Related to the signals crate
Specific Demand
Signals can currently only be used in the thread they were created in. This works great within the virtual dom, but it makes using signals within threads or tokio futures difficult.
Implement Suggestion
We can add a generic to signals to make them automatically sync + send when you use them in a context like a new thread that requires them to be sync + send. Something like this playground
The text was updated successfully, but these errors were encountered: