← Back To API Reference

.cancel

.cancel() -> undefined

取消 promise。如果这个承诺已经解决,或者 Cancellation 特性还没有启用,将不会做任何事情。对于如何使用取消,参见 Cancellation