dssWaitForAsyncs: Wait for previous datashield commands

View source: R/dssWaitForAsyncs.R

dssWaitForAsyncsR Documentation

Wait for previous datashield commands

Description

It polls the current opal commands launched with async = TRUE until all of them complete. Allows the launch of nonblocking datashield commands, useful in web applications. The "sleep" argument must not be set too low (0.3 seconds is probably a good minimum) otherwise it might look like a DOS attack and be blocked by the remote server.

Usage

dssWaitForAsyncs(datasources, sleep = 0.5)

Arguments

datasources

a list of opal objects obtained after logging into the opal servers (see datashield.login)

sleep

polling interval in seconds, default 0.5

Value

a list containing the results of the commands (if they were supposed to return anything) or raw(0)


sib-swiss/dsSwissKnifeClient documentation built on July 16, 2025, 6:25 p.m.