4 ms·
var group: Io.Group = .init; defer group.cancel(io); If you see this pattern, you are doing structured concurrency. Same thing with: var future = io.
by AndyKelley 11mo ago
var group: Io.Group = .init;
defer group.cancel(io);
If you see this pattern, you are doing structured concurrency.
Same thing with:
var future = io.async(foo, .{});
defer future.cancel(io);