How to use the @reactivex/ix-es2015-cjs/asynciterable/concat.concat function in @reactivex/ix-es2015-cjs

To help you get started, we’ve selected a few @reactivex/ix-es2015-cjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github neo-one-suite / neo-one / packages / neo-one-node-vm / src / stackItem / StackItemEnumerator.ts View on Github external
public concat(
    other: StackItemEnumerator,
  ): StackItemEnumerator {
    const iterable = concat(
      AsyncIterableX.from(this.enumerator as AsyncIterableIterator),
      AsyncIterableX.from(other.enumerator as AsyncIterableIterator),
    );

    return new StackItemEnumerator(iterable[Symbol.asyncIterator]());
  }
}
github neo-one-suite / neo-one / packages / neo-one-node-vm / src / stackItem / StackItemIterator.ts View on Github external
public concatIterator(other: StackItemIterator): StackItemIterator {
    const iterable = concat(
      AsyncIterableX.from(this.enumerator as AsyncIterableIterator),
      AsyncIterableX.from(other.enumerator as AsyncIterableIterator),
    );

    return new StackItemIterator(iterable[Symbol.asyncIterator]());
  }
}