Cooperative cancellation/deadline observation. CPU work must yield to the scheduler and poll; this does not preempt application code. .
Signature
cancelled :: (call: *Call) -> bool
handle :: (call: *Call, data: *void) -> Status {
while !cancelled(call) {
// ... a unit of work, then yield to the scheduler ...
break;
}
if cancelled(call) return .{ code = .CANCELLED };
return .{};
}