delve/service/rpccallback.go
Alessandro Arzilli fe904c14d1
service: serialize calls to Command API (#2370)
* service: serialize calls to Command API

Wait until the target process has resumed before accepting new calls to
Command. Before this if a 'continue' was immediately followed by a
'halt' the 'halt' could be processed before the 'continue'.

Fixes #1608
Fixes #2216

* service/rpccommon: fix DeepSource issues
2021-03-08 10:05:10 -08:00

12 lines
365 B
Go

package service
// RPCCallback is used by RPC methods to return their result asynchronously.
type RPCCallback interface {
Return(out interface{}, err error)
// SetupDone returns a channel that should be closed to signal that the
// asynchornous method has completed setup and the server is ready to
// receive other requests.
SetupDoneChan() chan struct{}
}