R6 class for async configuration.
Details
See crew_async().
See also
Other async:
crew_async()
Active bindings
workersSee
crew_async().instanceName of the current instance.
Methods
Method new()
TLS configuration constructor.
Usage
crew_class_async$new(workers = NULL)Arguments
workersArgument passed from
crew_async().
Method start()
Start the local workers and error handling socket.
Method eval()
Run a local asynchronous task using a local compute profile.
Arguments
commandR code to run.
substituteLogical of length 1, whether to substitute
command. IfFALSE, thencommandmust be an expression object or language object.dataNamed list of data objects required to run
command.packagesCharacter vector of packages to load.
libraryCharacter vector of library paths to load the packages from.
Details
Used for launcher plugins with asynchronous launches and
terminations. If processes is NULL, the task will run locally.
Otherwise, the task will run on a local process in the local
mirai compute profile.
Returns
If the processes field is NULL, a list with an object named
data containing the result of evaluating expr synchronously.
Otherwise, the task is evaluated asynchronously, and the result
is a mirai task object. Either way, the data element
of the return value will contain the result of the task.