Name every way a hold ends

This commit is contained in:
2026-09-28 10:50:54 +02:00
parent e52baafd29
commit d8c2647e75
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -27,7 +27,8 @@ type HoldEntry = {
/**
* One message offered to the application. A drain waits on it until the first of: `answered()`,
* every listener that took it rejecting, no listener taking it, its deadline, or the link going.
* every listener that took it rejecting, no listener taking it or one throwing, a later message on
* its sequence number, its deadline, or the link going.
*/
export class MessageHold {
private readonly entry: HoldEntry;
@@ -55,7 +56,7 @@ export class MessageHold {
if (this.working <= 0) this.answered();
}
/** At once, for a message nobody took: that is not work a shutdown can wait for. */
/** At once, for a message nobody took or a listener threw on: that is not work a shutdown can wait for. */
release(): void {
this.entry.release();
}