Repository navigation
How can I enable bi-directional communication between a new window, and the main window? #3795
|
I'm trying to create a setup where a desktop app opens the settings menu in a new window. I have it working and sending updates back by passing a How can I do this? Edit: |
Replies: 1 comment 1 reply
|
You can create a pair of async channels with |
You can create a pair of async channels with
futures::channels::mpsc::channel(): One for sending messages to the window and one for receiving messages from the window. You can pass the sender and receiver through props and read each channel in ause_future