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 Mutex-like type.

Receiver

Receive values from the associated Sender.

RwLock

An asynchronous reader-writer lock.

Sender

Send values to the associated Receiver.

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.