Skip to content

Commit 166b06e

Browse files
future.callr assumes FutureInterruptError() has a default 'message'; fix until future.callr doesn't make this assumption
1 parent f5d0fae commit 166b06e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
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.68.0-9018
2+
Version: 1.68.0-9019
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Depends:
55
R (>= 3.2.0)

R/protected_api-FutureCondition-class.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ FutureLaunchError <- function(..., future = NULL) {
445445

446446
#' @rdname FutureCondition
447447
#' @export
448-
FutureInterruptError <- function(..., when = Sys.time(), future = NULL) {
449-
cond <- FutureError(..., when = when, future = future)
448+
FutureInterruptError <- function(message = "A future was interrupted", when = Sys.time(), future = NULL) {
449+
cond <- FutureError(message = message, when = when, future = future)
450450
class <- c("FutureInterruptError", class(cond))
451451
class(cond) <- class[!duplicated(class, fromLast = TRUE)]
452452
cond

man/FutureCondition.Rd

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)