Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks Orlovich committed Aug 29, 2024
1 parent 1c1f216 commit 3e06bf5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6705,14 +6705,16 @@ scoring signals requests=] |entriesToBatch|:
To <dfn>batch and fetch trusted scoring signals</dfn> given a [=trusted scoring signals batcher=]
|batcher|:

1. [=Assert=] that these steps are running [=in parallel=].
1. Until |batcher| is no longer needed:
1. Wait until at least one of the following is true:
* |batcher|'s [=trusted scoring signals batcher/request queue=] [=map/is not empty=].
* |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.
1. Atomically do:
1. Let |incomingRequests| be a [=list/clone=] of |batcher|'s [=trusted scoring signals batcher/
request queue=].
1. [=list/Empty=] |batcher|'s [=trusted scoring signals batcher/request queue=].
1. [=list/For each=] |request| in |incomingRequests|:
1. Let |key| be (|request|'s [=trusted scoring signals request/seller script fetcher=],
|request|'s [=trusted scoring signals request/base url=], |request|'s [=trusted scoring
Expand Down

0 comments on commit 3e06bf5

Please sign in to comment.