From 547856e09edb387d55a0825200cf7ed7eb1fb021 Mon Sep 17 00:00:00 2001 From: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com> Date: Thu, 25 Feb 2021 16:04:18 +0000 Subject: [PATCH] DispatchCall was added in #41 but is missing in the public interface. --- jsonrpc2.go | 3 +++ 1 file changed, 3 insertions(+) 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