concept continuation monad in category c++

appears as: continuation monad
Functional Programming in C++

This is an excerpt from Manning's book Functional Programming in C++.

In this snippet, three asynchronous operations are chained naturally. Each function continues the work done by the previous one. Therefore, the functions passed to mbind are usually called continuations, and the future-value monad you defined is called the continuation monad.

Figure 12.6 Unlike the continuation monad, which calls the continuation function only once, reactive streams can have an arbitrary number of values. The continuation function is called for each new value that arrives.

c12_06.png