[][src]Function gwasm_api::compute

pub fn compute<P, S>(
    datadir: P,
    address: S,
    port: u16,
    net: Net,
    task: Task,
    progress_handler: impl ProgressUpdate + 'static
) -> Result<ComputedTask> where
    P: Into<PathBuf> + 'static,
    S: Into<String> + 'static, 

A convenience function for running a gWasm Task on Golem

The function uses actix's System to spawn an event loop in the current thread, and blocks until either a gWasm Task is computed, or it registers a Ctrl-C event, or there was an Error.