4 ms·
> It only means someone, somewhere in the chain, decided to make their function async Well it specifically means that a function can yield its execution contex
by jayd16 2y ago
> It only means someone, somewhere in the chain, decided to make their function async
Well it specifically means that a function can yield its execution context. That property is taken on when one function calls an async function.
It has clear implications for very common threading patterns, I think it's right to argue that using blue/red obfuscates that.
- shadowgovt 2y agoOne utility of blue/red is that it applies to other contexts that would cause similar "poison" effects as well. Some type systems allow for validated vs. unvalidated data. And then all of a sudden you have a creeping concern that half your functions talk about char* and half your functions talk about String (or, perhaps, a heterogeneous collection of strings: userid and telephone number and the like). Suddenly the code on the outside of the validation boundary can't use the code on the inside without addressing the question of whether their data is valid.