Function whenClosed

  • Calls the given callback function when current valve closed.

    If the valve is closed already, then calls the callback immediately.

    Does nothing if there is no current valve.

    Calls whenClosed method of current sink internally.

    Parameters

    • callback: ValveCallback

      Function to call once this valve is closed.

    Returns void

Generated using TypeDoc