class LSP::Wire
- LSP::Wire
- Reference
- Object
Defined in:
lsp/wire.crConstructors
Instance Method Summary
- #error_respond(req : M, &) : M::ErrorResponse forall M
- #notify(m_class : M.class, &) : M forall M
-
#receive
Wait for the next Message::Any to arrive from the input IO channel.
- #request(m_class : M.class, &) : M forall M
- #respond(req : M, &) : M::Response forall M
Constructor Detail
Instance Method Detail
def receive
#
Wait for the next Message::Any to arrive from the input IO channel. Malformed data on the IO channel is silently ignored. Raises Channel::ClosedError if the end of the IO has been reached.