| crew_class_async | R Documentation |
R6 async class.R6 class for async configuration.
See crew_async().
workersSee crew_async().
instanceName of the current instance.
new()TLS configuration constructor.
crew_class_async$new(workers = NULL)
workersArgument passed from crew_async().
An R6 object with TLS configuration.
validate()Validate the object.
crew_class_async$validate()
NULL (invisibly).
start()Start the local workers and error handling socket.
crew_class_async$start()
Does not create workers or an error handling socket
if workers is NULL or the object is already started.
NULL (invisibly).
terminate()Start the local workers and error handling socket.
crew_class_async$terminate()
Waits for existing tasks to complete first.
NULL (invisibly).
started()Show whether the object is started.
crew_class_async$started()
Logical of length 1, whether the object is started.
asynchronous()Show whether the object is asynchronous (has real workers).
crew_class_async$asynchronous()
Logical of length 1, whether the object is asynchronous.
eval()Run a local asynchronous task using a local compute profile.
crew_class_async$eval( command, substitute = TRUE, data = list(), packages = character(0L), library = NULL )
commandR code to run.
substituteLogical of length 1, whether to substitute command.
If FALSE, then command must 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.
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.
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.
Other async:
crew_async()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.