Skip to content

Commit 8517a27

Browse files
committed
Link to tc39#107
1 parent 76410c1 commit 8517a27

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

WEB-INTEGRATION.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,19 @@ observation was captured. This can be done by exposing an
405405
## Events
406406
407407
Events are a single API that is used for a great number of things, including
408-
cases which have a causal (dispatch) context separate from the registration
409-
context, and cases which have no dispatch context at all.
408+
cases which have a causal context (for events, also referred to as the dispatch
409+
context) separate from the registration context, and cases which have no
410+
dispatch context at all.
410411
411412
For consistency, event listener callbacks should be called with the dispatch
412413
context. If that does not exist, the empty context should be used, where all
413414
`AsyncContext.Variable`s are set to their initial values.
414415
415-
> TODO: Details. Fallback context.
416+
This use of the empty context, however, clashes with the goal of allowing
417+
“isolated” regions of code that share an event loop, and being able to trace
418+
in which region an error originates. A solution to this would be the ability to
419+
define a fallback context for a region of code. We have a proposal for this
420+
being fleshed out at issue #107.
416421
417422
### Design principles for dispatch snapshots
418423

0 commit comments

Comments
 (0)