Add enqueues an inflight operation. Note that some Queue implementations may not begin execution of new Requests until the following call to Wait. Preconditions: - The current number of inflight operations < Cap().
(req Request)
| 47 | // Preconditions: |
| 48 | // - The current number of inflight operations < Cap(). |
| 49 | Add(req Request) |
| 50 | |
| 51 | // Wait blocks until at least minCompletions inflight operations have |
| 52 | // completed, then appends all completed inflight operations to cs and |
no outgoing calls