fn mainLoop(ev: *Evented, message: *const SwitchMessage) callconv(.c) noreturn ev: *Eventedmessage: *const SwitchMessage618
619
620
621
622
623fn mainLoop(ev: *Evented, message: *const SwitchMessage) callconv(.c) noreturn {
message.handle(ev);
assert(ev.exit_semaphore.wait(.FOREVER) == 0);
Fiber.@"resume"(&ev.main_fiber);
unreachable; // switched to dead fiber
}