MCPcopy Index your code
hub / github.com/angular/angular / wrapSubscribable

Function wrapSubscribable

packages/common/test/pipes/async_pipe_spec.ts:43–52  ·  view source on GitHub ↗
(input: Subscribable<T>)

Source from the content-addressed store, hash-verified

41 // only expose methods from the Subscribable interface, to ensure that
42 // the implementation does not rely on other methods:
43 const wrapSubscribable = <T>(input: Subscribable<T>): Subscribable<T> => ({
44 subscribe(...args: any): Unsubscribable {
45 const subscription = input.subscribe.apply(input, args);
46 return {
47 unsubscribe() {
48 subscription.unsubscribe();
49 },
50 };
51 },
52 });
53
54 let emitter: EventEmitter<any>;
55 let subscribable: Subscribable<any>;

Callers 1

async_pipe_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…