BatchCall sends all given requests as a single batch and waits for the server to return a response for all of them. In contrast to Call, BatchCall only returns I/O errors. Any error specific to a request is reported through the Error field of the corresponding BatchElem. Note that batch calls may
(b []BatchElem)
| 325 | // |
| 326 | // Note that batch calls may not be executed atomically on the server side. |
| 327 | func (c *Client) BatchCall(b []BatchElem) error { |
| 328 | ctx := context.Background() |
| 329 | return c.BatchCallContext(ctx, b) |
| 330 | } |
| 331 | |
| 332 | // BatchCall sends all given requests as a single batch and waits for the server |
| 333 | // to return a response for all of them. The wait duration is bounded by the |