simpleValve

Create a simple valve in an iopipe chain.

This puts a transparent layer between the given chain and the next downstream iopipe to provide valve access. Calling valve on the resulting iopipe gives access to the chain argument passed in.

simpleValve
(
Chain
)
(
Chain chain
)
if (
isIopipe!Chain
)

Return Value

Type: auto

A new iopipe chain that provides a valve access point to the parameter.

Meta