[][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, Error> where
    P: AsRef<Path>,
    S: AsRef<str>, 

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.