-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Hello, these days, as the author of Futureverse, I recommend to use:
ys <- value(fs)instead of:
ys <- lapply(fs, value)One reason is that it value(fs) on a set of futures fs supports early stopping in case of errors and interrupts. For instance, if the user interrupts the processing, value(fs) will cancel all active futures, which results in value(fs) exiting much sooner. Same happens if one of the futures result in an error -- all other futures will be canceled and then the error is produced. This will not happen when using lapply(fs, value).
Here's one example where you could update your code accordingly:
Line 388 in ddc98fb
| samplers <- lapply(samplers, future::value) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels