R6
class for async configuration.
Details
See crew_async()
.
See also
Other async:
crew_async()
Active bindings
workers
See
crew_async()
.instance
Name of the current instance.
Methods
Method new()
TLS configuration constructor.
Usage
crew_class_async$new(workers = NULL)
Arguments
workers
Argument 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
command
R code to run.
substitute
Logical of length 1, whether to substitute
command
. IfFALSE
, thencommand
must be an expression object or language object.data
Named list of data objects required to run
command
.packages
Character vector of packages to load.
library
Character 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.