Implementing a Task Dependency Flow with Effect in TypeScript
I'm trying to create a tasks program that is base on Effect:
I want to create a dependencies flow that runs according to a given instructions:
for example:
this flow will run task "a" and "c" in parallel as both don't have any dependencies that it will run task "b" as it depends on task "c" and at the end it will run task "d" as it depends on tasks "a" and "b".
I wanted to use Effect Queue for that with and take the tasks when thy meet the given dependencies conditions but i don't see any Queue method that takes items according to fulfilling a specific condition.
any directions on how to implemet such a program?
I want to create a dependencies flow that runs according to a given instructions:
for example:
[ {name: "a"}, {name: "b", dependencies: ["c"]}, {name: "c"}, {name: "d", dependencies: ["a", "b"} ]this flow will run task "a" and "c" in parallel as both don't have any dependencies that it will run task "b" as it depends on task "c" and at the end it will run task "d" as it depends on tasks "a" and "b".
I wanted to use Effect Queue for that with and take the tasks when thy meet the given dependencies conditions but i don't see any Queue method that takes items according to fulfilling a specific condition.
any directions on how to implemet such a program?
