Is object a deferred value?
is_deferred(x)
object
Whether it is a deferred value.
# NOT RUN { is_deferred(1:10) afun <- function() { print(is_deferred(dx <- delay(1/100))) dx } synchronise(afun()) # }
Run the code above in your browser using DataCamp Workspace