The key here is that you don’t have to call resume immediately. Just like how you can store a closure to compute some result later, you can wrap resume in a closure and wait to call it some other time. The state of the function that triggered the effect will be stored with the closure just like any other data. You can see this in action in the Effekt async example.
FirstFT: the day's biggest stories
。关于这个话题,heLLoword翻译官方下载提供了深入分析
The logic mirrors the white-collar story, even if the mechanism is different, with the authors arguing these effects are “economically meaningful.” Just as AI becomes economically attractive when it can replace the codified work of a junior software engineer or customer service rep, an industrial robot becomes more attractive when the cost of the human doing repetitive assembly or welding goes up. In both cases, a rising price for labor at the lower end of the skill spectrum tilts the calculus toward machines.
���[���}�K�W���̂��m�点