Expressions to insert into the []
method for ‘mirai_map’
objects.
.flat.progress
.stop
An object of class expression
of length 1.
An object of class expression
of length 1.
An object of class expression
of length 1.
x[]
collects the results of a ‘mirai_map’ x
and
returns a list. This will wait for all asynchronous operations to
complete if still in progress, blocking but user-interruptible.
x[.flat]
collects and flattens map results to a vector, checking
that they are of the same type to avoid coercion. Note: errors if an
‘errorValue’ has been returned or results are of differing type.
x[.progress]
collects map results whilst showing a text progress
indicator.
x[.stop]
collects map results applying early stopping, which stops
at the first failure and cancels remaining operations. Note: operations
already in progress continue to completion, although their results are
not collected.
The options above may be combined in a vector, for example:
x[c(.stop, .progress)]
applies early stopping together with a
progress indicator.