[−][src]Function gwasm_api::golem::poll_task_progress
pub fn poll_task_progress(
endpoint: impl Clone + Send + RpcEndpoint + 'static,
task_id: String,
polling_interval: Option<Duration>
) -> impl Stream<Item = TaskStatus, Error = Error> + 'static
A convenience function for polling gWasm Task
's computation progress on Golem
This function returns an async Stream
which can be asynchronously
iterated for new progress updates. Note however that this function will actively poll
for the updates rather than subscribe to some event publisher at a polling_interval
which if not specified by default equals 2secs.