class LSP::Wire

Defined in:

lsp/wire.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(in __arg0 : IO, out __arg1 : IO) #

[View source]

Instance Method Detail

def error_respond(req : M, &) : M::ErrorResponse forall M #

[View source]
def notify(m_class : M.class, &) : M forall M #

[View source]
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.


[View source]
def request(m_class : M.class, &) : M forall M #

[View source]
def respond(req : M, &) : M::Response forall M #

[View source]