()
| 378 | [Symbol.asyncIterator](): AsyncIterator<{ method: string; params: unknown }> { |
| 379 | return { |
| 380 | async next() { |
| 381 | if (notificationQueue.length > 0) { |
| 382 | return { value: notificationQueue.shift()!, done: false }; |
| 383 | } |
| 384 | if (done) return { value: undefined as never, done: true }; |
| 385 | return new Promise((resolve) => notificationWaiters.push(resolve)); |
| 386 | }, |
| 387 | }; |
| 388 | }, |
| 389 | }, |
no outgoing calls