From 0b30c4c7b4c5b81d8f94a05b3c4ae4a43e9fab3b Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Wed, 6 Dec 2023 11:40:10 -0500 Subject: [PATCH] Spec the `Observable` constructor --- spec.bs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spec.bs b/spec.bs index 80891aa..0970b7a 100644 --- a/spec.bs +++ b/spec.bs @@ -220,6 +220,21 @@ interface Observable { }; +Each {{Observable}} has a subscribe callback, which is a +{{SubscribeCallback}}. + +Issue: Make [=Observable/subscribe callback=] either a {{SubscribeCallback}} or a set of steps that +can be passed in by natively-constructed {{Observable}}s. + +
+ The new + Observable(|callback|) constructor steps are: + + 1. Set [=this=]'s [=Observable/subscribe callback=] to |callback|. + + Note: This callback will get invoked later when {{Observable/subscribe()}} is called. +
+

Operators

For now, see [https://github.com/wicg/observable#operators](https://github.com/wicg/observable#operators).