1 | import { AsyncIterableX } from './asynciterablex';
|
2 | export class IgnoreElementsAsyncIterable extends AsyncIterableX {
|
3 | constructor(source) {
|
4 | super();
|
5 | this._source = source;
|
6 | }
|
7 | async *[Symbol.asyncIterator]() {
|
8 | // tslint:disable-next-line:no-empty
|
9 | for await (let _ of this._source) {
|
10 | }
|
11 | }
|
12 | }
|
13 | export function ignoreElements(source) {
|
14 | return new IgnoreElementsAsyncIterable(source);
|
15 | }
|
16 |
|
17 | //# sourceMappingURL=ignoreelements.mjs.map
|