invoke

Macro invoke 

Source
macro_rules! invoke {
    { $( $vis:vis async fn $name:ident ( $($arg:ident : $arg_ty:ty),* $(,)? ) $(-> $ty:ty)? ; )* } => { ... };
    { $( $vis:vis async fn $name:ident ( $($arg:ident : $arg_ty:ty),* $(,)? ) $(-> $ty:ty)? ),* $(,)? } => { ... };
}
Expand description

ยงExamples

// define an invoke
tauri_invoke::invoke!(async fn example_invoke(foo: f32, bar: bool) -> String);

// call the invoke
let future = example_invoke(1.0, false);