If there is no current state, e.g. right after make_flow_fn, the flow is "not flowing", it is preventing downstream flows from being computed.

is_current(flow)

Arguments

flow

A flow object, e.g. as returned by flow_fn.

Value

A logical value, whether the current state is valid.

Examples

fn <- function(x, y) { x + y + 8 } flowed_fn <- flow_fn(1, 2, fn = fn)
#> New cache: fn=fn / fn_id=1 / fn_key=f44b017eab837ef5
is_current_flow <- is_current(flowed_fn)