Coroutines
A way to implement streams through non-local control and encapsulation of state.
References
- There's a whole thesis on coroutines:
@book{marlin_coroutines_1980,
address = {Berlin, Heidelberg},
series = {Lecture {Notes} in {Computer} {Science}},
title = {Coroutines},
volume = {95},
isbn = {978-3-540-10256-4 978-3-540-38378-9},
url = {http://link.springer.com/10.1007/3-540-10256-6},
urldate = {2020-10-11},
publisher = {Springer Berlin Heidelberg},
author = {Marlin, Christopher D.},
editor = {Goos, G. and Hartmanis, J. and Brauer, W. and Brinch Hansen, P. and Gries, D. and Moler, C. and Seegmüller, G. and Stoer, J. and Wirth, N.},
year = {1980},
doi = {10.1007/3-540-10256-6}
}