mirror of
https://github.com/golang/go
synced 2024-09-30 22:38:33 -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> |
||
---|---|---|
.. | ||
jsonrpc2_test.go | ||
jsonrpc2.go | ||
log.go | ||
stream.go | ||
wire.go |