Skip to main content

Crate my_flag

Crate my_flag 

Source
Expand description

Simple flag implementation for tokio.

Structsยง

Flag
Structure that consists of a bool wrapped in Arc and RwLock to ensure thread safety and protect against race conditions. Since the RwLock used is from the tokio, it can be used asynchronously. Important: Before passing the flag to a new thread clone it.