1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-16 04:04:56 +02:00

DispatchCall was added in #41 but is missing in the public interface.

This commit is contained in:
Cornelius Weig 2021-02-25 16:04:18 +00:00 committed by GitHub
parent 366fbb5207
commit 547856e09e

View file

@ -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