Creates new valve and pours it to the given sink.
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.
Target sink.
Promise resolved when valve sank.
Generated using TypeDoc
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.