diff --git a/jsonrpc2.go b/jsonrpc2.go index d1288e2..c52c1d4 100644 --- a/jsonrpc2.go +++ b/jsonrpc2.go @@ -23,6 +23,9 @@ type JSONRPC2 interface { // Call issues a standard request (http://www.jsonrpc.org/specification#request_object). Call(ctx context.Context, method string, params, result interface{}, opt ...CallOption) error + // DispatchCall is like Call but does not wait for the result. + DispatchCall(ctx context.Context, method string, params interface{}, opts ...CallOption) (Waiter, error) + // Notify issues a notification request (http://www.jsonrpc.org/specification#notification). Notify(ctx context.Context, method string, params interface{}, opt ...CallOption) error