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

Method _selectStrategy

packages/common/src/pipes/async_pipe.ts:212–224  ·  view source on GitHub ↗
(
    obj: Subscribable<any> | PromiseLike<any> | EventEmitter<any>,
  )

Source from the content-addressed store, hash-verified

210 }
211
212 private _selectStrategy(
213 obj: Subscribable<any> | PromiseLike<any> | EventEmitter<any>,
214 ): SubscriptionStrategy {
215 if (ɵisPromise(obj)) {
216 return _promiseStrategy;
217 }
218
219 if (ɵisSubscribable(obj)) {
220 return _subscribableStrategy;
221 }
222
223 throw invalidPipeArgumentError(AsyncPipe, obj);
224 }
225
226 private _dispose(): void {
227 // Note: `dispose` is only called if a subscription has been initialized before, indicating

Callers 1

_subscribeMethod · 0.95

Calls 1

invalidPipeArgumentErrorFunction · 0.90

Tested by

no test coverage detected