7
CHAPTER 7

Async & Event Handling

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

Duplicate request

Same request sent multiple times unintentionally.

networkfrontendstate
[1 examples]

Data race

Concurrent threads improperly accessing shared data.

concurrencyundefined behaviorc++
[11 examples]

Deadlock

Processes permanently stuck waiting on each other, halting execution.

concurrencyresource managementc++
[179 examples]

Race condition

Program outcome depends unpredictably on event timing.

concurrencyundefined behavior
[87 examples]

Infinite loop

Loop continuously runs without ending, freezing the system.

logiccontrol flowperformance
[26 examples]

Infinite recursion

Recursive function calls itself indefinitely, causing stack overflow.

logiccontrol flowundefined behavior
[21 examples]

Flaky test

Test produces inconsistent, unpredictable results.

code qualityasynctesting
[23 examples]

Unhandled promise

Promises without proper handling, causing silent failures.

asyncerror handlingjavascript
[23 examples]

Unhandled promise rejection

Promise rejections not handled, causing runtime issues.

asyncerror handlingjavascript
[1 examples]

Missed event

Expected event not captured or handled properly.

asyncstate