Buckets:

imerfanrajabee's picture
download
raw
784 Bytes
import { EmptyError } from './util/EmptyError';
import { SafeSubscriber } from './Subscriber';
export function firstValueFrom(source, config) {
var hasConfig = typeof config === 'object';
return new Promise(function (resolve, reject) {
var subscriber = new SafeSubscriber({
next: function (value) {
resolve(value);
subscriber.unsubscribe();
},
error: reject,
complete: function () {
if (hasConfig) {
resolve(config.defaultValue);
}
else {
reject(new EmptyError());
}
},
});
source.subscribe(subscriber);
});
}
//# sourceMappingURL=firstValueFrom.js.map

Xet Storage Details

Size:
784 Bytes
·
Xet hash:
a1cab9daa280123eeb8c7c9744aa7aa6c565e4f3c0543dfdc276bcf3243b6e92

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