3 ms·
Is there any way to implement structured concurrency on top of the std.Io primitive?
by breatheoften 10mo ago
Is there any way to implement structured concurrency on top of the std.Io primitive?
- AndyKelley 10mo agovar 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);