[−][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:
- an object implementing
RpcEndpointtrait, 2) createdTask's ID asString.