MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / WithTimeout

Method WithTimeout

client.go:123–128  ·  view source on GitHub ↗

WithTimeout clones the client with the given timeout. If a custom requester was given while initializing, it will be overridden.

(timeout time.Duration)

Source from the content-addressed store, hash-verified

121// WithTimeout clones the client with the given timeout.
122// If a custom requester was given while initializing, it will be overridden.
123func (c *Client) WithTimeout(timeout time.Duration) *Client {
124 nc := *c
125 nc.timeout = timeout
126 nc.requester = newRequester(timeout)
127 return &nc
128}
129
130// FlatFeed returns a new Flat Feed with the provided slug and userID.
131func (c *Client) FlatFeed(slug, userID string) (*FlatFeed, error) {

Callers

nothing calls this directly

Calls 1

newRequesterFunction · 0.85

Tested by

no test coverage detected