Buckets:

imerfanrajabee's picture
download
raw
472 Bytes
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

Xet Storage Details

Size:
472 Bytes
·
Xet hash:
b36d804b268245913ad2090a7a5a8c2dbef6febbd6e3d0beabea9719d251ec73

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.