noflo-flow

Flow Control for NoFlo

npm install noflo-flow
3 downloads in the last day
49 downloads in the last week
120 downloads in the last month

Flow Control for NoFlo

Build Status Dependency Status NPM version

This package provides utility components to control the flow within a NoFlo program.

It qualifies as a flow control component if it allows partial data to go to one out port versus another (or not at all).

Feel free to contribute new components and graphs! I'll try to incorporate as soon as time allows.

Usage

flow/Floodgate

Take in some IPs and cache them until it has been told which out-port to flush them.

  • In-port IN: the IPs to receive and cache
  • In-port PORT: the port index of the out-port to flush the IPs
  • Out-port OUT: an ArrayPort directing the release of IPs

flow/TrafficLight

Either pass through IPs or cache them until told ready

  • In-port IN: the IPs to receive and cache
  • In-port STOP: 0 to stop and cache IPs and 1 to pass through
  • In-port READY: send any IP to flush the cache
  • Out-port OUT: out comes the IPs

flow/BufferUntil

Buffer all IPs until we're ready, after which point, everything is passed through.

  • In-port IN: the IPs to receive and cache
  • In-port READY: send any IP to signal that we're ready
  • Out-port OUT: out comes the IPs
npm loves you