Invokes client.ready followed by 0 or more client.poll invocations until the connection to node is ready,
the timeout expires or the connection fails.
Invokes client.ready followed by 0 or more client.poll invocations until the connection to node is ready,
the timeout expires or the connection fails.
It returns true if the call completes normally or false if the timeout expires. If the connection fails,
an IOException is thrown instead.
This method is useful for implementing blocking behaviour on top of the non-blocking NetworkClient, use it with
care.
Invokes client.send followed by 1 or more client.poll invocations until a response is received,
the timeout expires or a disconnection happens.
Invokes client.send followed by 1 or more client.poll invocations until a response is received,
the timeout expires or a disconnection happens.
It returns true if the call completes normally or false if the timeout expires. In the case of a disconnection,
an IOException is thrown instead.
This method is useful for implementing blocking behaviour on top of the non-blocking NetworkClient, use it with
care.
Provides extension methods for
NetworkClientthat are useful for implementing blocking behaviour. Use with care.Example usage: