@pond-ts/process API Reference
    Preparing search index...

    Class Outlet<T>

    A node's typed output port.

    Type Parameters

    • T
    Index

    Properties

    Accessors

    Methods

    Properties

    name: string
    node: Node<any, any>

    The node this output belongs to.

    Accessors

    • get version(): number

      How many times this outlet's value has actually changed. Downstream nodes compare against this to decide whether a dirty mark was a real change or a false alarm. 0 means nothing has been produced yet.

      Returns number

    Methods

    • Evaluates this outlet and returns its value.

      Pull-based: the owning node recomputes only if it is dirty and an upstream version actually changed. A clean node returns the cached value without touching the rest of the graph.

      Returns T

    • Returns the cached value without evaluating anything, or undefined if this outlet has never produced one. Use it to inspect graph state (a debug view, a node inspector) without forcing computation.

      Returns T | undefined