Skip to content

Commit 76bdd98

Browse files
Allow calling sequential() a bit longer, because CRAN package 'fiery' does it
1 parent 5c524e3 commit 76bdd98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/backend_api-SequentialFutureBackend-class.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
#' @aliases uniprocess
2828
#' @export
2929
sequential <- function(..., envir = parent.frame()) {
30-
stop("INTERNAL ERROR: The future::sequential() function implements the FutureBackend and should never be called directly")
30+
.Deprecated("The future::sequential() function implements the FutureBackend and should never be called directly. This will soon become defunct")
31+
f <- Future(..., envir = envir)
32+
class(f) <- c("SequentialFuture", "UniprocessFuture", "Future")
33+
f
3134
}
3235
class(sequential) <- c("sequential", "uniprocess", "future", "function")
3336

0 commit comments

Comments
 (0)