Send should be uncancelable

This commit is contained in:
2026-01-10 11:37:26 -05:00
parent 78b23ee59c
commit 99ea755658

View File

@@ -43,7 +43,9 @@ const Subscription = struct {
try self.queue_lock.lock(io); try self.queue_lock.lock(io);
defer self.queue_lock.unlock(io); defer self.queue_lock.unlock(io);
for (bytes) |chunk| { for (bytes) |chunk| {
try self.queue.putAll(io, chunk); // Uncancelable because canceling the sender in the middle of this loop
// would put an invalid set series of bytes in the receivers queue.
_ = try self.queue.putUncancelable(io, chunk, chunk.len);
} }
} }
}; };