plinth/browser/worker

Types

pub type Worker

Functions

pub fn new(script: String) -> Result(Worker, String)
pub fn on_message(worker: Worker, handle: fn(Json) -> Nil) -> Nil
pub fn post_message(worker: Worker, message: Json) -> Nil
Search Document