March 2024
Intermediate to advanced
288 pages
7h 49m
English
This chapter covers
done(), and awaitsWhen we’re dealing with regular synchronous code, waiting for actions to finish is implicit. We don’t worry about it, and we don’t really think about it too much. When dealing with asynchronous code, however, waiting for actions to finish becomes an explicit activity that is under our control. Asynchronicity makes code, and the tests for that code, potentially trickier because we have to be explicit about waiting for actions to complete.
Let’s start with a simple fetching example to illustrate the issue.
Read now
Unlock full access