Open hiroshi-yamamoto-dublr opened 2 years ago
It's a great idea! If you can get it working, I would welcome a pull request that adds this feature.
You may also like https://github.com/observablehq/runtime which supports promises.
Apologies but I went with another library already, and wouldn't have the bandwidth to go back and add this to topologica. I like what you built, however.
Oh nice! I'm curious, what library did you end up going with?
Up! This would be an amazing feature
Thanks! I wonder what that would look like... The next step would be to come up with some failing test cases that outline the API we want to see.
@curran I went with this one. It handles async code just fine, and schedules as many async work units as possible to be run concurrently in the current "wave" of change propagation.
Oh wow very nice!
This library is exactly what I was looking for, but almost all the properties I need to calculate and set in my dataflow graph are calculated using async functions. It's a shame you have to break these functions into two pieces, "cutting the dependency graph", as shown in the docs. Why not accept both async functions / promises and synchronous functions? The DAG can be scheduled in the same way, topologically.