From 5df4a3858d84c7995a18fd533d1a3fc0e5f412a1 Mon Sep 17 00:00:00 2001 From: Marais Rossouw Date: Fri, 13 Dec 2024 02:37:30 +1000 Subject: [PATCH] =?UTF-8?q?Forward=20subscriber=E2=80=99s=20abort=20signal?= =?UTF-8?q?=20to=20event=20listener=20(#187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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|.