File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -405,14 +405,19 @@ observation was captured. This can be done by exposing an
405
405
## Events
406
406
407
407
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.
410
411
411
412
For consistency, event listener callbacks should be called with the dispatch
412
413
context. If that does not exist, the empty context should be used, where all
413
414
` AsyncContext .Variable ` s are set to their initial values.
414
415
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.
416
421
417
422
### Design principles for dispatch snapshots
418
423
You can’t perform that action at this time.
0 commit comments