We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6c113c + 876798e commit 6eacdacCopy full SHA for 6eacdac
answer.go
@@ -33,13 +33,6 @@ type Promise struct {
33
// Next state is resolved.
34
// - Resolved. Fulfill or Reject has finished.
35
36
- // When acquiring multiple Promise.state mutexes, they must be acquired
37
- // in traversal order (i.e. p, then p.next, then p.next.next).
38
- //
39
- // FIXME: is the above traversal scheme sound? It depends on avoiding
40
- // cycles in the graph to prevent potential deadlocks, and it is not
41
- // clear to me(zenhack) that this is a safe assumption (I suspect it's
42
- // not).
43
state mutex.Mutex[promiseState]
44
}
45
0 commit comments