Flow
Flow implementation
According to Wikipedia, Monads is an abstract generic structure that get its usage in function composition. Monads can shortly considered as Programming with effects.
We consider Flows as a set of elements in our ensemble as a Monad implementation :
- By using
jobas basic function type within theFlow. - By using
fnas a binary operation,Flowcan be composed together with othersFlowelement.
A Flow can process one or many Ips which has its application for asynchronous programming when mixing with Drivers.
Flow
This is the standard Flow implementation that support asynchronous Ip processing.
FlowDecorator
This is useful for implementing the decorator design pattern.
TransportFlow
TransportFlow will interact with Flow with Producer and Sender.
YFlow
YFlow use YCombinator to provide recursion.
LambdaFlow
LambdaFlow provides a simple way to create flows using lambda functions or closures. This allows for quick, inline flow definitions without creating separate flow classes.
Make your own Flow
You can make your custom Flow by implementing Flow\FlowInterface.