mirror of
https://github.com/golang/go
synced 2024-10-01 01:48:32 -06: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> |
||
---|---|---|
.. | ||
check_test.go | ||
check.go | ||
cmd_test.go | ||
cmd.go | ||
definition_test.go | ||
definition.go | ||
export_test.go | ||
query.go | ||
serve.go |