poll_task: Poll Task

View source: R/deploy.R

poll_taskR Documentation

Poll Task

Description

Polls a task, waiting for information about a deployment. If the task has results, the output will be a modified "Task" object with task$get_data() available to retrieve the results.

Usage

poll_task(task, wait = 1, callback = message)

Arguments

task

A Task object

wait

The interval to wait between polling

callback

A function to be called for each message received. Set to NULL for no callback

Details

For a simple way to silence messages, set callback = NULL

Value

Task The Task object that was input

See Also

Other deployment functions: bundle_dir(), bundle_path(), bundle_static(), deploy(), download_bundle()


connectapi documentation built on Feb. 16, 2023, 7:46 p.m.