| waitForWorkItem | R Documentation |
Polls checkPdf at a fixed interval until the WorkItem reaches
a terminal state (any status other than "inprogress" or
"pending").
waitForWorkItem(id, token, interval = 5, timeout = 300, verbose = TRUE)
id |
A string. WorkItem ID from |
token |
A string or |
interval |
Seconds between polls. Defaults to |
timeout |
Maximum seconds to wait before aborting. Defaults to
|
verbose |
If |
The final checkPdf response object.
## Not run:
resp <- makePdf(source = mySource, destination = myDest, token = myToken)
done <- waitForWorkItem(id = resp$content$id, token = myToken)
done$content$status
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.