MCPcopy Index your code
hub / github.com/koding/kite / TellWithTimeout

Method TellWithTimeout

client.go:727–730  ·  view source on GitHub ↗

TellWithTimeout does the same thing with Tell() method except it takes an extra argument that is the timeout for waiting reply from the remote Kite. If timeout is given 0, the behavior is same as Tell().

(method string, timeout time.Duration, args ...interface{})

Source from the content-addressed store, hash-verified

725// extra argument that is the timeout for waiting reply from the remote Kite.
726// If timeout is given 0, the behavior is same as Tell().
727func (c *Client) TellWithTimeout(method string, timeout time.Duration, args ...interface{}) (result *dnode.Partial, err error) {
728 response := <-c.GoWithTimeout(method, timeout, args...)
729 return response.Result, response.Err
730}
731
732// Go makes an unblocking method call to the server.
733// It returns a channel that the caller can wait on it to get the response.

Callers 15

TestMethod_ThrottlingFunction · 0.95
TestMethod_LatestFunction · 0.95
TestMethod_FirstFunction · 0.95
TestMethod_ErrorFunction · 0.95
TestMethod_BaseFunction · 0.95
TestContextFunction · 0.95
TestKiteFunction · 0.95
TellMethod · 0.95
SendWebRTCRequestMethod · 0.95
TestProxyFunction · 0.95
RunMethod · 0.95

Calls 1

GoWithTimeoutMethod · 0.95

Tested by 15

TestMethod_ThrottlingFunction · 0.76
TestMethod_LatestFunction · 0.76
TestMethod_FirstFunction · 0.76
TestMethod_ErrorFunction · 0.76
TestMethod_BaseFunction · 0.76
TestContextFunction · 0.76
TestKiteFunction · 0.76
TestProxyFunction · 0.76
TestMultipleFunction · 0.64
TestConcurrencyFunction · 0.64
TestWebSocketProxyFunction · 0.64