4 ms·
Not sure I follow. The function coloring problem is still solved in that scenario. You can apply structured concurrency to any function (there’s no colors), and
by HiJon89 2y ago
Not sure I follow. The function coloring problem is still solved in that scenario. You can apply structured concurrency to any function (there’s no colors), and any function can contain structured concurrency within it (ie, using structured concurrency doesn’t color your function)
- Rapzid 2y agoYou don't follow. Nothing against you in particular, but this is why we've had 10+ years of "color problem" articles and no real solutions. The problem isn't the colors, it's the ergonomics. The naive solution doesn't work because it turns out the difference between functions that return a value and functions that return a promise matters.. The other approaches destroy ergonomics.