I think you have the wrong shape here, as you’re immediately canceling in the accept-loop.
You probably want an Io.Group before the loop which you defer cancel. Then inside the loop, you call async on the group instead of on io directly.
I think you have the wrong shape here, as you’re immediately canceling in the accept-loop.
You probably want an Io.Group before the loop which you defer cancel. Then inside the loop, you call async on the group instead of on io directly.