pub fn invoke_callback(id: u64, result: Result<String, u32>) -> boolExpand 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.