From c81de622e6db52d065c6107ca97a7edddfd5b360 Mon Sep 17 00:00:00 2001 From: Marais Rossouw Date: Thu, 12 Dec 2024 10:21:10 +1000 Subject: [PATCH] feat: forward the subscribers abort signal in event listener --- spec.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec.bs b/spec.bs index 4c0914c..6e79428 100644 --- a/spec.bs +++ b/spec.bs @@ -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|.