(reqs: AsyncGenerator<Envelope>)
| 43 | } |
| 44 | |
| 45 | async function nextReq(reqs: AsyncGenerator<Envelope>): Promise<Envelope> { |
| 46 | const { value, done } = await reqs.next(); |
| 47 | if (done) throw new Error("no request"); |
| 48 | return value; |
| 49 | } |
| 50 | |
| 51 | /** Minimal Client stand-in SkillsResource needs (transport + fleetId). */ |
| 52 | function fakeClient(t: Transport): Client { |