Skip to content

Commit

Permalink
Forward subscriber’s abort signal to event listener (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr authored Dec 12, 2024
1 parent a8bfae2 commit 5df4a38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1811,11 +1811,11 @@ partial interface EventTarget {
:: false

: [=event listener/signal=]
:: null
:: |subscriber|'s [=Subscriber/subscription controller=]'s [=AbortController/signal=]

Note: The {{AbortSignal}} for event listeners [=add an event listener|added=] by
{{EventTarget/when()}} is managed by the {{Observable}} itself. See
{{Observable/subscribe()}} and {{SubscribeOptions}}.
Note: This ensures that the [=event listener=] is cleaned up when
[=Subscriber/subscription controller=]'s [=AbortController/signal=] is [=AbortSignal/aborted=],
regardless of an engine's ownership model.

1. Return |observable|.
</div>
Expand Down

0 comments on commit 5df4a38

Please sign in to comment.