Crate ic_cdk_executor

Source
Expand description

An async executor for ic-cdk. Most users should not use this crate directly.

Functionsยง

in_callback_cancellation_context
Execute an inter-canister-call callback in a context that allows calling spawn and notifying wakers, but will cancel every awoken future.
in_callback_executor_context
Execute an inter-canister-call callback in a context that allows calling spawn and notifying wakers.
in_executor_context
Execute an update function in a context that allows calling spawn and notifying wakers.
in_query_executor_context
Execute a composite query function in a context that allows calling spawn and notifying wakers.
is_recovering_from_trap
Tells you whether the current async fn is being canceled due to a trap/panic.
spawn
Spawn an asynchronous task to run in the background.