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{})
| 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(). |
| 727 | func (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. |