Skip to content

Commit

Permalink
feat: forward the subscribers abort signal in event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Dec 12, 2024
1 parent e1d9685 commit c81de62
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 c81de62

Please sign in to comment.