- From: Tab Atkins Jr. <notifications@github.com>
- Date: Fri, 20 Feb 2015 16:16:46 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Saturday, 21 February 2015 00:17:13 UTC
You don't need to create an alternate universe. I outlined a good option earlier in IRC: Tasks can be Promises too, they just create a plain Promise when you call `.then()`/etc. If you operate on it like it's a multicast object, it'll behave like one; you have a different API (`.pipe()`, which is otherwise identical to `.then()`) for when you want to preserve the dangerous parts and treat it like unicast. (You can fiddle with details there; `.pipe()` could ref-count and be callable multiple times, or maybe it's single-call and you have to clone explicitly; whatever.) (I haven't read your previous post yet; feedback probably incoming.) --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/625#issuecomment-75343209
Received on Saturday, 21 February 2015 00:17:13 UTC