mirror of
https://git.robbyzambito.me/zits
synced 2026-02-04 03:34:48 +00:00
Send should be uncancelable
This commit is contained in:
@@ -43,7 +43,9 @@ const Subscription = struct {
|
||||
try self.queue_lock.lock(io);
|
||||
defer self.queue_lock.unlock(io);
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user