MCPcopy
hub / github.com/tc39/proposal-observable / cleanupFromSubscription

Function cleanupFromSubscription

src/Observable.js:71–73  ·  view source on GitHub ↗
(subscription)

Source from the content-addressed store, hash-verified

69}
70
71function cleanupFromSubscription(subscription) {
72 return _=> { subscription.unsubscribe() };
73}
74
75function Subscription(observer, subscriber) {
76 // Assert: subscriber is callable

Callers 1

SubscriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected