A token for Visitor's spot in the queue.
- (Promise) engagementPromise
Fulfilled with Engagement
If an Operator becomes available and accepts Visitor's request then this promise will be fulfilled with the resulting Engagement.
Rejected with Error
- CANCEL: Visitor's spot in the queue was canceled. This can happen, for example, after using QueueTicket#cancel or when there are no more Operators online.
Instance Method Summary
- # (Promise) cancel() Cancel Visitor's spot in the queue.
Instance Method Details
Cancel Visitor's spot in the queue.
Calling this method will cause the engagementPromise to be rejected with a CANCEL cause.