[][src]Function gwasm_api::golem::create_task

pub async fn create_task<'_, '_>(
    datadir: &'_ Path,
    address: &'_ str,
    port: u16,
    net: Net,
    task: Task
) -> Result<(impl Clone + Send + RpcEndpoint, String)>

A convenience function for creating a gWasm Task on Golem

This function returns to necessary components to track the Task on Golem Network:

  1. an object implementing RpcEndpoint trait, 2) created Task's ID as String.