Skip to content

Commit

Permalink
refactor: rename to push_running_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Apr 16, 2024
1 parent 1f14a05 commit df1816d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/RushWorker.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ RushWorker = R6::R6Class("RushWorker",
#'
#' @return (`character()`)\cr
#' Keys of the tasks.
push_running_task = function(xss, extra = NULL) {
push_running_tasks = function(xss, extra = NULL) {
assert_list(xss, types = "list")
assert_list(extra, types = "list", null.ok = TRUE)
r = self$connector
Expand Down
10 changes: 5 additions & 5 deletions man/RushWorker.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-Rush.R
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ test_that("network without controller works", {
x1 = sample(seq(1000), 1),
x2 = sample(seq(1000), 1)
)
keys = rush$push_running_task(list(xs))
keys = rush$push_running_tasks(list(xs))

# evaluate
ys = list(y = xs$x1 + xs$x2)
Expand Down

0 comments on commit df1816d

Please sign in to comment.