Skip to content

Commit 8142461

Browse files
Backend backward compatibility: Third-party backends may not have collected results, despite reporting state being 'finished'
1 parent b583c02 commit 8142461

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/backend_api-Future-class.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ print.Future <- function(x, ...) {
349349
msg
350350
},
351351
finished = {
352-
stop_if_not(inherits(result, "FutureResult"))
352+
## FIXME: Third-party backends does not yet guarantee this
353+
# stop_if_not(inherits(result, "FutureResult"))
353354

354355
if ("cancel" %in% actions) {
355356
if ("interrupt" %in% actions) {
@@ -361,7 +362,7 @@ print.Future <- function(x, ...) {
361362
} else {
362363
msg <- "Future was resolved"
363364
}
364-
365+
365366
conditions <- result[["conditions"]]
366367
n <- length(conditions)
367368
if (n == 0L) {

0 commit comments

Comments
 (0)