Skip to content

Commit 8ed6c55

Browse files
HELP: Clarify that resolved() never signals an error, result() and value() may signal a FutureError, e.g. FutureInteruptError
1 parent 247a6c0 commit 8ed6c55

File tree

7 files changed

+13
-1
lines changed

7 files changed

+13
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future
2-
Version: 1.67.0-9015
2+
Version: 1.67.0-9017
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Depends:
55
R (>= 3.2.0)

R/backend_api-Future-class.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,9 @@ result <- function(future, ...) {
642642
#' @param \ldots Not used.
643643
#'
644644
#' @return The [FutureResult] object.
645+
#' It may signal a [FutureError], if there is a significant orchestration
646+
#' error. For example, if the parallel worker process terminated abruptly
647+
#' ("crashed"), then a [FutureInterruptError] is signaled.
645648
#'
646649
#' @details
647650
#' This function is only part of the _backend_ Future API.

R/core_api-resolved.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#' A logical vector of the same length and dimensions as `x`.
1313
#' Each element is TRUE unless the corresponding element is a
1414
#' non-resolved future in case it is FALSE.
15+
#' It never signals an error.
1516
#'
1617
#' @details
1718
#' `resolved(..., run = TRUE)` attempts to launch a lazy future, if there is

R/core_api-value.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
#' If `signal` is TRUE and one of the futures produces an error, then
4545
#' that error is relayed. Any remaining, non-resolved futures in `x` are
4646
#' canceled, prior to signaling such an error.
47+
#' If the future was interrupted, canceled, or the parallel worker terminated
48+
#' abruptly ("crashed"), then a [FutureInterruptError] is signaled.
4749
#'
4850
#' @example incl/value.R
4951
#'

man/resolved.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/result.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/value.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)