(ctx context.Context)
| 136 | } |
| 137 | |
| 138 | func (op *requestOp) wait(ctx context.Context) (*jsonrpcMessage, error) { |
| 139 | select { |
| 140 | case <-ctx.Done(): |
| 141 | return nil, ctx.Err() |
| 142 | case resp := <-op.resp: |
| 143 | return resp, op.err |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | // Dial creates a new client for the given URL. |
| 148 | // |
no test coverage detected