Skip to content

Commit 3260cae

Browse files
Forgot to add new file for MultiprocessFutureBackend
1 parent 9922619 commit 3260cae

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#' @export
2+
launchFuture.MultiprocessFutureBackend <- function(backend, future, ...) {
3+
stopf("launchFuture() is not implemented for this type of future backend (please contacts the maintainer of that backend): %s", commaq(class(backend)))
4+
}
5+
6+
7+
#' @export
8+
nbrOfWorkers.MultiprocessFutureBackend <- function(evaluator) {
9+
assert_no_positional_args_but_first()
10+
backend <- evaluator
11+
stopf("nbrOfWorkers() is not implemented for this type of future backend (please contacts the maintainer of that backend): %s", commaq(class(backend)))
12+
}
13+
14+
15+
#' @export
16+
nbrOfFreeWorkers.MultiprocessFutureBackend <- function(evaluator, background = FALSE, ...) {
17+
assert_no_positional_args_but_first()
18+
backend <- evaluator
19+
stopf("nbrOfFreeWorkers() is not implemented for this type of future backend (please contacts the maintainer of that backend): %s", commaq(class(backend)))
20+
}

0 commit comments

Comments
 (0)