initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
8
node_modules/rxjs/dist/esm/internal/observable/throwError.js
generated
vendored
Normal file
8
node_modules/rxjs/dist/esm/internal/observable/throwError.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { Observable } from '../Observable';
|
||||
import { isFunction } from '../util/isFunction';
|
||||
export function throwError(errorOrErrorFactory, scheduler) {
|
||||
const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;
|
||||
const init = (subscriber) => subscriber.error(errorFactory());
|
||||
return new Observable(scheduler ? (subscriber) => scheduler.schedule(init, 0, subscriber) : init);
|
||||
}
|
||||
//# sourceMappingURL=throwError.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue