7
CHAPTER 7

Async & Event Handling

Concurrency issues, race conditions, and asynchronous programming bugs
[2 examples]

Duplicate request

Same request unintentionally sent multiple times.

networkfrontendstate
[1 examples]

Data race

Concurrent threads access shared data improperly.

concurrencyundefined behaviorc++
[11 examples]

Deadlock

Processes stuck waiting on each other.

concurrencyresource managementc++
[724 examples]

Race condition

Outcome depends on timing of events.

concurrencyundefined behavior
[87 examples]

Infinite loop

Loop runs indefinitely without termination.

logiccontrol flowperformance
[26 examples]

Infinite recursion

Recursive function calls never end.

logiccontrol flowundefined behavior
[21 examples]

Flaky test

Test passes or fails unpredictably.

code qualityasynctesting
[23 examples]

Unhandled promise

Promise without appropriate handling of resolution or rejection.

asyncerror handlingjavascript
[23 examples]

Unhandled promise rejection

Promise rejection not caught or handled.

asyncerror handlingjavascript
[1 examples]

Missed event

Failure to capture or handle an expected event.

asyncstate