Debian Codegraph @

R/methods.R

raw
1 #' @export
2 format.promise <- function(x, ...) {
3 p <- attr(x, "promise_impl", exact = TRUE)
4 p$format()
5 }
6
7 #' @export
8 print.promise <- function(x, ...) {
9 cat(paste(format(x), collapse = "\n"), "\n", sep = "")
10 }