Skip to content

Commit 7266db4

Browse files
cancel() on an already canceled future did not return it invisibly
1 parent 40d8496 commit 7266db4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.58.0-9024
2+
Version: 1.58.0-9025
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Depends:
55
R (>= 3.2.0)

R/core_api-cancel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ cancel.Future <- function(x, interrupt = TRUE, ...) {
8888
## Only running futures can be canceled, ignore everything else
8989
if (future[["state"]] != "running") {
9090
if (debug) mdebug("Skipping, because a non-running future")
91-
return(future)
91+
return(invisible(future))
9292
}
9393

9494
if (interrupt) {

0 commit comments

Comments
 (0)