Buckets:

imerfanrajabee's picture
download
raw
646 Bytes
import { concat } from '../observable/concat';
import { take } from './take';
import { ignoreElements } from './ignoreElements';
import { mapTo } from './mapTo';
import { mergeMap } from './mergeMap';
import { innerFrom } from '../observable/innerFrom';
export function delayWhen(delayDurationSelector, subscriptionDelay) {
if (subscriptionDelay) {
return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
}
return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));
}
//# sourceMappingURL=delayWhen.js.map

Xet Storage Details

Size:
646 Bytes
·
Xet hash:
ec20566b60bae8303a7927b51069cf990f0c0035b46c2cc995f0b087e19e088a

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