1
0
mirror of https://github.com/golang/go synced 2024-11-05 16:46:10 -07:00
go/internal/jsonrpc2/servertest
Ian Cottrell ae9902aceb internal/lsp: remove the CallCanceller
This required changing the jsonrpc.Conn.Call signature to also return the
request ID so it can be cancelled.
The protocol package now declares the Call function which wrapps up
Conn.Call and then sends a cancel message if the context was
cancelled during the call.
There is a small chance that a context can be cancelled on a
request that has already completed, but it is safe to do so.

Change-Id: Ic8040c193e1dd4ef376ad21194b1d0ea82145976
Reviewed-on: https://go-review.googlesource.com/c/tools/+/227558
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-04-10 13:26:12 +00:00
..
servertest_test.go internal/lsp: remove the CallCanceller 2020-04-10 13:26:12 +00:00
servertest.go internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00