send writes a message to the outgoing queue, respecting context cancellation.
(msg *lsproto.Message)
| 690 | |
| 691 | // send writes a message to the outgoing queue, respecting context cancellation. |
| 692 | func (s *Server) send(msg *lsproto.Message) error { |
| 693 | return s.outgoingQueue.Put(s.backgroundCtx, msg) |
| 694 | } |
| 695 | |
| 696 | // handleRequestOrNotification looks up the handler for the given request or notification, executes its synchronous work |
| 697 | // and returns any asynchronous work as a function to be executed by the caller. |