Skip to main content

dispatch

Function dispatch 

Source
pub async fn dispatch(
    call: &CapabilityCall,
    self_provider_id: &str,
    atlas: &mut AtlasClient,
) -> CapabilityCallResult
Expand description

Dispatch a single CapabilityCall and return its result.

self_provider_id is the executor’s own provider_id (used to short-circuit builtins that target this process). atlas is used to ConnectCapability for any external provider call; the channel is released as soon as the call finishes.