Go makes an unblocking method call to the server. It returns a channel that the caller can wait on it to get the response.
(method string, args ...interface{})
| 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. |
| 734 | func (c *Client) Go(method string, args ...interface{}) chan *response { |
| 735 | return c.GoWithTimeout(method, 0, args...) |
| 736 | } |
| 737 | |
| 738 | // GoWithTimeout does the same thing with Go() method except it takes an |
| 739 | // extra argument that is the timeout for waiting reply from the remote Kite. |