Function withValve

  • Creates new valve and pours it to the given sink.

    If there is a current valve, then makes new one depend on it. I.e. once that valve is closed, the new one would be closed with the same reason.

    Make the valve current for the synchronous part of the sink.

    Calls withValve internally.

    Parameters

    Returns Promise<void>

    Promise resolved when valve sank.

Generated using TypeDoc