Skip to main content

invoke

Function invoke 

Source
pub async fn invoke<C>(args: C::Args) -> Result<C::Output, C::Error>
where C: Command,
Expand description

Invokes a typed Command in the active Application.

LGUI async handlers and tasks automatically carry their Application scope. Futures submitted to an external executor must first be wrapped with ApplicationContext::scope.