Skip to main content

adapt_completion_callback

Function adapt_completion_callback 

Source
pub async fn adapt_completion_callback(
    receiver: TransactionCompletionReceiver,
    callback: Box<dyn CompletionCallback>,
) -> Result<(), CompletionDeliveryError>
Expand description

Invoke a legacy completion callback after the runtime publishes once.

Runs on the caller/host task — never on the runtime-owned executor.