Chaining Coroutines
This lesson explains how to chain coroutines with an example.
We'll cover the following...
Chaining Coroutines
One of the most prominent uses of coroutines is to chain them to process data pipelines. We can chain coroutines in a fashion similar to how we pipe Unix commands in a shell.
The idea is that the input passes through the first coroutine, which may perform some actions on the input and then passes on the modified data to the second coroutine which may perform additional operations on the input. The input travels through the chain of coroutines with each coroutine applying some operation on the input ...