How to use the ix/asynciterable.forkJoin function in ix

To help you get started, we’ve selected a few ix 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 ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin no selector first empty', async () => {
  const xs = empty();
  const ys = of(25, 39, 42);
  const zs = of(39, 42, 25);

  const res = await forkJoin(xs, ys, zs);
  expect(res).toBe(undefined);
});
github ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin no selector last empty', async () => {
  const xs = of(42, 25, 39);
  const ys = of(25, 39, 42);
  const zs = empty();

  const res = await forkJoin(xs, ys, zs);
  expect(res).toBe(undefined);
});
github ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin with selector last empty', async () => {
  const xs = of(42, 25, 39);
  const ys = of(25, 39, 42);
  const zs = empty();

  const res = await forkJoin(([x, y, z]) => x + y + z, xs, ys, zs);
  expect(res).toBe(undefined);
});
github ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin with selector first empty', async () => {
  const xs = empty();
  const ys = of(25, 39, 42);
  const zs = of(39, 42, 25);

  const res = await forkJoin(([x, y, z]) => x + y + z, xs, ys, zs);
  expect(res).toBe(undefined);
});
github ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin with selector last smaller', async () => {
  const xs = of(42, 25, 39);
  const ys = of(25, 39, 42);
  const zs = of(39, 42);

  const res = await forkJoin(([x, y, z]) => x + y + z, xs, ys, zs);
  expect(res).toBe(123);
});
github ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin with selector middle empty', async () => {
  const xs = of(42, 25, 39);
  const ys = empty();
  const zs = of(39, 42, 25);

  const res = await forkJoin(([x, y, z]) => x + y + z, xs, ys, zs);
  expect(res).toBe(undefined);
});
github ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin no selector middle smaller', async () => {
  const xs = of(42, 25, 39);
  const ys = of(25, 39);
  const zs = of(39, 42, 25);

  const res = await forkJoin(xs, ys, zs);
  expect(sequenceEqual(res as number[], [39, 39, 25])).toBeTruthy();
});
github ReactiveX / IxJS / spec / asynciterable / forkjoin-spec.ts View on Github external
test('AsyncIterable#forkJoin no selector middle empty', async () => {
  const xs = of(42, 25, 39);
  const ys = empty();
  const zs = of(39, 42, 25);

  const res = await forkJoin(xs, ys, zs);
  expect(res).toBe(undefined);
});