Skip to main content

Module asynchronous

Module asynchronous 

Source
Expand description

Async facade over connection::Connection, gated by the async feature. Async facade over Connection, gated by the async feature.

This module is tokio-only: every method dispatches to tokio::task::spawn_blocking. There is no runtime-agnostic abstraction here — an async-std or smol user can reimplement AsyncConnection over their own blocking-task primitive in place of spawn_blocking; see its source for the pattern, which is small.

Structs§

AsyncConnection
An async facade over a Connection.
AsyncDatabase
An async facade over a Database.
AsyncPool
An async facade over a Pool.