isFlow

isFlow() returns true when the function was wrapped by flow().

Signature

function isFlow(value: unknown): boolean

Basic usage

import { flow, isFlow } from "@fobx/core"

const fn = flow(function* () {})

isFlow(fn) // true
isFlow(function* () {}) // false

Use flow() to create async generator-based actions.