MCPcopy Create free account
hub / github.com/CPChain/chain / wait

Method wait

api/rpc/client.go:138–145  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

136}
137
138func (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//

Callers 3

CallContextMethod · 0.95
BatchCallContextMethod · 0.95
SubscribeMethod · 0.95

Calls 1

ErrMethod · 0.65

Tested by

no test coverage detected