mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
a8f40b3f4d
This changes the basic API of a jsonrpc2 connection to run the read loop as a method rather than in a go routine launched in the NewConn. This allows the handler to be created and bound between construction and the read loop starting, which fixes the race. Fixes golang/go#30091 Change-Id: I8201175affe431819cf473e5194d70c019f58425 Reviewed-on: https://go-review.googlesource.com/c/tools/+/170003 Run-TryBot: Ian Cottrell <iancottrell@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
fastwalk | ||
gopathwalk | ||
jsonrpc2 | ||
lsp | ||
module | ||
semver | ||
span | ||
tool | ||
txtar |