1. Task1 executes its operation and returns 5 2. Task2 depends on Task1 and retrieve the value returned by Task1, that is 5. 3. Task2 executes its operation and uses the value from Task1.
The tasks also type safe, so there's no need for runtime type casting.
I'm looking for feedback and ideas, I was thinking to add branching and loop, but I would love to hear your thoughts. You can find it here: https://github.com/spicyPoke/TaskWeave
splitbrainhack•1h ago