Commit c2cbc4c
authored
avoid race condition in 06-advanced-functions/09-call-apply-decorators/04-throttle/solution.md
Well there is still a chance for a race condition but a smaller one.
We would need an atomic "if or set" for isThrottled1 parent d4b3c13 commit c2cbc4c
1 file changed
Lines changed: 1 addition & 2 deletions
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
0 commit comments