exchangeMessage sends a message to a process and reads a response if resp != nil Only fatal errors to communicate return an error, errors may be embedded in reply
(ctx *customAdapterWorkerContext, req interface{})
| 202 | // exchangeMessage sends a message to a process and reads a response if resp != nil |
| 203 | // Only fatal errors to communicate return an error, errors may be embedded in reply |
| 204 | func (a *customAdapter) exchangeMessage(ctx *customAdapterWorkerContext, req interface{}) (*customAdapterResponseMessage, error) { |
| 205 | err := a.sendMessage(ctx, req) |
| 206 | if err != nil { |
| 207 | return nil, err |
| 208 | } |
| 209 | return a.readResponse(ctx) |
| 210 | } |
| 211 | |
| 212 | // shutdownWorkerProcess terminates gracefully a custom adapter process |
| 213 | // returns an error if it couldn't shut down gracefully (caller may abortWorkerProcess) |
no test coverage detected