Skip to content

Commit

Permalink
Link to #107
Browse files Browse the repository at this point in the history
  • Loading branch information
andreubotella committed Jan 7, 2025
1 parent 76410c1 commit 8517a27
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions WEB-INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,14 +405,19 @@ observation was captured. This can be done by exposing an
## Events
Events are a single API that is used for a great number of things, including
cases which have a causal (dispatch) context separate from the registration
context, and cases which have no dispatch context at all.
cases which have a causal context (for events, also referred to as the dispatch
context) separate from the registration context, and cases which have no
dispatch context at all.
For consistency, event listener callbacks should be called with the dispatch
context. If that does not exist, the empty context should be used, where all
`AsyncContext.Variable`s are set to their initial values.
> TODO: Details. Fallback context.
This use of the empty context, however, clashes with the goal of allowing
“isolated” regions of code that share an event loop, and being able to trace
in which region an error originates. A solution to this would be the ability to
define a fallback context for a region of code. We have a proposal for this
being fleshed out at issue #107.
### Design principles for dispatch snapshots
Expand Down

0 comments on commit 8517a27

Please sign in to comment.