// todo test // https://chat.qwen.ai/c/b2eea389-4859-4467-aa24-85e189a4557e // https://chat.qwen.ai/c/5cfd2bc3-66eb-4ca5-a2cd-7126e99e4dc4 // https://vibed.org/api/vibe.core.channel/ import std.stdio; import core.thread : Fiber; void foo(){ writeln("Hello"); Fiber.yield(); writeln("World"); } void test5_spawner(){ auto f = new Fiber(&foo); //f.call(); // Hello //f.call(); // World while(f.state != Fiber.State.TERM){ f.call(); } } /* ./vtest2 hello here! Hello World */