Contents

cancel

Stops any work the promise is doing.

Declaration

void cancel();

Discussion

When called, it throws a CancelledError.