Module tauri::async_runtime [−][src]
Expand description
Async runtime.
The singleton async runtime used by Tauri and exposed to consumers.
Wraps a tokio
Runtime and is meant to be used by initialization code, such as plugins initialization
and app setup
hooks.
Fox more complex use cases, consider creating your own runtime.
For command handlers, it’s recommended to use a plain async fn
command.
Structs
Mutex | An asynchronous |
Receiver | Receive values from the associated |
RwLock | An asynchronous reader-writer lock. |
Sender | Send values to the associated |
Functions
block_on | Run a future to completion on runtime. |
channel | Creates a bounded mpsc channel for communicating between asynchronous tasks with backpressure. |
spawn | Spawn a future onto the runtime. |