set Timeout
Sets the transaction timeout in seconds from now.
This is a convenience method that sets the maximum time bound to current time + timeout. If you want infinite timeout, use TIMEOUT_INFINITE (0).
You cannot use both setTimeout and explicit time bounds in preconditions.
Return
This builder for method chaining
Parameters
timeout
The timeout in seconds (0 for infinite)
Throws
if timeout is negative
Sets the transaction timeout using Kotlin Duration from now.
This is a convenience method that sets the maximum time bound to current time + timeout.
Return
This builder for method chaining
Parameters
timeout
The timeout duration