delve/service/rpccallback.go
Fata Nugraha 15a9f9d353
cmd/dlv: print out message with stack trace when breakpoint is hit but has no waiting client (#3632)
* Print out message and dump stack on pause

* Fix test

* Move the logic to debugger layer

* Remove unused fields

* Do not use defer to get state

* move channel to connection

* remove lock on isClosed

* Use mutex

* Remove unwanted changes
2024-06-12 12:31:46 -07:00

16 lines
548 B
Go

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