Macro axum_odbc::blocking

source ·
macro_rules! blocking {
    ($($expr:tt)*) => { ... };
}
Expand description

Block non async closure or functions so it can run within async.

Examples


let connection = manager.aquire().await?;

let _ = blocking!(connection.execute("DROP TABLE IF EXISTS TEST", ()))?;