Open knexer opened 1 year ago
Took a stab at adding the runtime-type-safe Task factory functions to TaskGraph, and even the reduced runtime-only checking is harder than I expected. There seems to be no supported way to get the generic types at runtime (see here).
Starting from the function registry side of things might be more fruitful. I'm picturing something like:
Random thought: Could FunctionRegistry/FunctionId somehow permit defining a callback that doesn't care about the graph context?
Lots of experimentation with Bradley determined that doing this 100% is impossible. The best remaining strategy we found is:
The first step would be to add the Task factory methods to the task graph. The next step would be to swap Tasks for task ids.