Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Latest commit

 

History

History

communication_thread

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Communication Thread

Example on how to use a communication thread alongside with the GUI thread.

Tricks used here:

  • Use a channel to show data on the GUI.
  • Run an async function on the GUI event loop.
  • Use a separate thread to handle incoming data and put it into a channel.

Run it by executing:

cargo run --bin communication_thread

screenshot