Skip to content

Commit

Permalink
Code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Jan 11, 2024
1 parent 57cd34b commit b0a314d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions R/extended-task.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ ExtendedTask <- R6Class("ExtendedTask", portable = TRUE,
#' [\{promises\}](https://rstudio.github.io/promises/) package, most
#' likely in conjuction with the
#' [\{future\}](https://rstudio.github.io/promises/articles/promises_04_futures.html)
#' package. It's also important that this logic does not read from any
#' package. (In short, the return value of `func` should be a
#' [`Future`][future::future()] object, or a `promise`, or something else
#' that [promises::as.promise()] understands.)
#'
#' It's also important that this logic does not read from any
#' reactive inputs/sources, as inputs may change after the function is
#' invoked; instead, if the function needs to access reactive inputs, it
#' should take parameters and the caller of the `invoke()` method should
Expand Down Expand Up @@ -90,6 +94,9 @@ ExtendedTask <- R6Class("ExtendedTask", portable = TRUE,
invisible(NULL)
},
#' @description
#' This is a reactive read that invalidates the caller when the task's
#' status changes.
#'
#' Returns one of the following values:
#'
#' * `"initial"`: This `ExtendedTask` has not yet been invoked
Expand All @@ -98,9 +105,6 @@ ExtendedTask <- R6Class("ExtendedTask", portable = TRUE,
#' retrieved via the `result()` method
#' * `"error"`: An invocation completed with an error, which will be
#' re-thrown if you call the `result()` method
#'
#' This is a reactive read that invalidates the caller when the task's
#' status changes.
status = function() {
private$rv_status()
},
Expand Down
12 changes: 8 additions & 4 deletions man/ExtendedTask.Rd

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

0 comments on commit b0a314d

Please sign in to comment.