Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nats-io/nats.go
/ Timeout
Method
Timeout
test/enc_test.go:820–820 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
818
// which implements net.Error Timeout interface.
819
type
timeoutError
interface
{
820
Timeout() bool
821
}
822
timeoutErr, ok := err.(timeoutError)
823
if
!ok || !timeoutErr.Timeout() {
Callers
15
Read
Method · 0.65
TestMoreErrOnConnect
Function · 0.65
TestCustomFlusherTimeout
Function · 0.65
testContextRequestWithTimeout
Function · 0.65
testContextRequestWithDeadline
Function · 0.65
TestContextSubNextMsgWithTimeout
Function · 0.65
TestContextSubNextMsgWithDeadline
Function · 0.65
connect
Function · 0.65
TestContextEncodedRequestWithTimeout
Function · 0.65
TestContextEncodedRequestWithDeadline
Function · 0.65
TestAlwaysReconnectOnMaxConnectionsExceededErr
Function · 0.65
TestAlwaysReconnectOnAccountMaxConnectionsExceededErr
Function · 0.65
Calls
no outgoing calls
Tested by
15
TestMoreErrOnConnect
Function · 0.52
TestCustomFlusherTimeout
Function · 0.52
testContextRequestWithTimeout
Function · 0.52
testContextRequestWithDeadline
Function · 0.52
TestContextSubNextMsgWithTimeout
Function · 0.52
TestContextSubNextMsgWithDeadline
Function · 0.52
connect
Function · 0.52
TestContextEncodedRequestWithTimeout
Function · 0.52
TestContextEncodedRequestWithDeadline
Function · 0.52
TestAlwaysReconnectOnMaxConnectionsExceededErr
Function · 0.52
TestAlwaysReconnectOnAccountMaxConnectionsExceededErr
Function · 0.52
TestMaxConnectionsReconnect
Function · 0.52