Skip to content

Commit

Permalink
Better wait.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks Orlovich committed Jul 25, 2024
1 parent a2501fb commit c7d842f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5982,8 +5982,10 @@ To <dfn>batch and fetch trusted scoring signals</dfn> given a [=trusted scoring
|batcher|:

1. Until this object is no longer needed:
1. Wait until |batcher|'s [=trusted scoring signals batcher/request queue=] is no longer empty or
some heuristically chosen amount of time has passed.
1. Wait until at least one of the following is true:
1. |batcher|'s [=trusted scoring signals batcher/request queue=] [=map/is not empty=].
1. |batcher|'s [=trusted scoring signals batcher/request map=] [=map/is not empty=] and some
heuristically chosen amount of time has passed.
1. Atomically transfer all entries in |batcher|'s [=trusted scoring signals batcher/
request queue=] to |incomingRequests|, leaving |batcher|'s [=trusted scoring signals batcher/
request queue=] empty.
Expand Down

0 comments on commit c7d842f

Please sign in to comment.