Skip to content

Glossary: Swift Beyond the Basics

data race

Also written: data races, race

Two tasks touching the same value at the same time, with at least one changing it. If two tasks both read 4 and write 5, a bag is lost from Jo's stock counter.

Where the book teaches it

Related terms

actorSendableSwift 6 language modereentrancy