(envelope: any)
| 345 | resumes.set(envelope, resume) |
| 346 | }) |
| 347 | const streamHandler = (envelope: any) => |
| 348 | Effect.callback<any, any>((resume) => { |
| 349 | Queue.offerUnsafe(queue, envelope) |
| 350 | resumes.set(envelope, resume) |
| 351 | }).pipe( |
| 352 | Effect.map((streamOrQueue) => |
| 353 | Stream.isStream(streamOrQueue) ? streamOrQueue : Stream.fromQueue(streamOrQueue) |
| 354 | ), |
| 355 | Stream.unwrap |
| 356 | ) |
| 357 | const handlers: Record<string, any> = Object.create(null) |
| 358 | for (const rpc_ of this.protocol.requests.values()) { |
| 359 | const rpc = rpc_ as any as Rpc.AnyWithProps |
nothing calls this directly
no test coverage detected