← Back To API Reference

.cancel

.cancel() -> undefined

Cancel this promise. Will not do anything if this promise is already settled or if the Cancellation feature has not been enabled. See Cancellation for how to use cancellation.