Skip to main content

worker_post_message

Function worker_post_message 

Source
pub fn worker_post_message(handle: u32, data: &[u8]) -> i32
Expand description

Send a message to a worker spawned with spawn_worker.

Returns 0 on success, -1 if the handle is unknown.