Receive returns a message as a Subscription, Message, Pong or error. See PubSub example for details. This is low-level API and in most cases Channel should be used instead. Receive returns a message as a Subscription, Message, Pong, or an error. See PubSub example for details. This is a low-level AP
(ctx context.Context)
| 526 | // It may return early with an error if the context is canceled, the connection fails, |
| 527 | // or other internal errors occur. |
| 528 | func (c *PubSub) Receive(ctx context.Context) (interface{}, error) { |
| 529 | return c.ReceiveTimeout(ctx, 0) |
| 530 | } |
| 531 | |
| 532 | // ReceiveMessage returns a Message or error ignoring Subscription and Pong |
| 533 | // messages. This is low-level API and in most cases Channel should be used |