Skip to main content

invoke_callback

Function invoke_callback 

Source
pub fn invoke_callback(id: u64, result: Result<String, u32>) -> bool
Expand description

Invoke callback (called from platform code) to send result back.

  • Oneshot: removes the callback after sending.
  • Stream: keeps the callback active; returns false if the channel is full or closed.
  • Handler: executes immediately on the caller’s thread; drops the handler on panic.