The Problem: Shared State
Even in single-threaded async code, race conditions can occur when modifying shared state:
Learning Objectives
Lesson Outline
Even in single-threaded async code, race conditions can occur when modifying shared state:
Both tasks read the same value before either wrote back!