dist/async-iterable/operators.js
/** Append an item to the end of an iterable */
Append an item to the end of an iterable
Append an item to the end of an iterable
function push(...next) {
    return function (it) {
        return __asyncGenerator(this, arguments, function* () {
            var e_21, _a;
            yield __await(yield* __asyncDelegator(__asyncValues(it)));
            try {
                for (var next_1 = __asyncValues(next), next_1_1; next_1_1 = yield __await(next_1.next()), !next_1_1.done;) {
                    const iterable = next_1_1.value;
                    yield yield __await(iterable);
                }
            }
            catch (e_21_1) { e_21 = { error: e_21_1 }; }
            finally {
                try {
                    if (next_1_1 && !next_1_1.done && (_a = next_1.return)) yield __await(_a.call(next_1));
                }
                finally { if (e_21) throw e_21.error; }
            }
        });
    };
}
function push ( ... next ) { return function ( it ) { return __asyncGenerator ( this , arguments , function * ( ) { var e_21 , _a ; yield __await ( yield * __asyncDelegator ( __asyncValues ( it ) ) ) ; try { for ( var next_1 = __asyncValues ( next ) , next_1_1 ; next_1_1 = yield __await ( next_1 . next ( ) ) , ! next_1_1 . done ; ) { const iterable = next_1_1 . value ; yield yield __await ( iterable ) ; } } catch ( e_21_1 ) { e_21 = { error : e_21_1 } ; } finally { try { if ( next_1_1 && ! next_1_1 . done && ( _a = next_1 . return ) ) yield __await ( _a . call ( next_1 ) ) ; } finally { if ( e_21 ) throw e_21 . error ; } } } ) ; } ; }
Append an item to the end of an iterable
Append an item to the end of an iterable