SshAgentClient.setOperationTimeout

void setOperationTimeout(Duration timeout) @safe pure nothrow

Sets a deadline applied to every operation started afterwards.

An operation whose complete response has not arrived when the deadline expires fails with a typed timeout error instead of waiting for the agent forever. A non-positive duration disables the limit.

Parameters

timeoutMaximum time from the request leaving the client to its complete response arriving.