mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
public commit
This commit is contained in:
15
app/__test__/flows/inc/parallel.ts
Normal file
15
app/__test__/flows/inc/parallel.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Flow } from "../../../src/flows";
|
||||
import { getNamedTask } from "./helper";
|
||||
|
||||
const first = getNamedTask("first");
|
||||
const second = getNamedTask("second", undefined, 1000);
|
||||
const third = getNamedTask("third");
|
||||
const fourth = getNamedTask("fourth");
|
||||
const fifth = getNamedTask("fifth"); // without connection
|
||||
|
||||
const parallel = new Flow("Parallel", [first, second, third, fourth, fifth]);
|
||||
parallel.task(first).asInputFor(second);
|
||||
parallel.task(first).asInputFor(third);
|
||||
parallel.task(third).asInputFor(fourth);
|
||||
|
||||
export { parallel };
|
||||
Reference in New Issue
Block a user