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

Latest commit

 

History

History
17 lines (11 loc) · 387 Bytes

File metadata and controls

17 lines (11 loc) · 387 Bytes

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