Permalink
Browse files

Update flow.md

  • Loading branch information...
Rizo Isrof
Rizo Isrof committed Nov 5, 2015
1 parent 0655df1 commit a4cd067a71a32259c6a51f84084ab040b5637dff
Showing with 29 additions and 0 deletions.
  1. +29 −0 notes/flow.md
View
@@ -1,5 +1,34 @@
```
type Stream α β r =
| Ready r
| Yield (β, Stream α β r)
| Await (α -> Stream α β r)
```
| Type Synonym | α | β | r |
|---------------------|:-:|:-:|:-:|
| _**Producer** β_ | | • | |
| _**Consumer** α r_ | • | | • |
| _**Workflow** r_ | | | • |
```
Upstream | Downstream Upstream | Downstream
+-------------+ +-------------+
| | | |
req <-- <-- req .. req <-- <-- ..
| node0 | | node1 |
rep --> --> rep .. rep --> --> ..
| | | |
+-------------+ +-------------+
=> count
Yield (0,

0 comments on commit a4cd067

Please sign in to comment.