Function simpleValve

Create a simple valve in an iopipe chain.

auto auto simpleValve(Chain) (
  Chain chain
)
if (isIopipe!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.

Parameters

NameDescription
chain The upstream iopipe chain to provide valve access to.

Returns

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