Coroutines 1
Coroutines 1
Deep Dive
Marcin Moskała
This book is for sale at http://leanpub.com/coroutines
ISBN 978-83-963958-1-8
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Introduction 1
Introduction
Conventions
When I use a concrete element from code, I will use code-font. When
naming a concept, I will capitalize the word. To reference an arbi-
trary element of some type, I will use lowercase. For example:
Code conventions
launch(CoroutineName("Name1")) { ... }
launch(CoroutineName("Name2") + Job()) { ... }
In some cases, I will show comments next to the line that prints them.
I do this when the order is clear:
In a few snippets I have added a number after the line to more easily
explain the snippet’s behavior. This is what it might look like:
Introduction 4
Acknowledgments
This book would not be so good without the reviewers’ great sugges-
tions and comments. I would like to thank all of them. Here is the
whole list of reviewers, starting from the most active ones.