is_deferred: Is object a deferred value?

View source: R/deferred.R

is_deferredR Documentation

Is object a deferred value?

Description

Is object a deferred value?

Usage

is_deferred(x)

Arguments

x

object

Value

Whether it is a deferred value.

Examples

is_deferred(1:10)
afun <- function() {
  print(is_deferred(dx <- delay(1/100)))
  dx
}
synchronise(afun())

r-lib/async documentation built on Nov. 19, 2024, 12:08 p.m.