Represents a runtime task wrapping a promise, allowing status check and cancellation.
Cancels the task execution.
Returns true if the task has completed (either resolved or rejected).
Represents a runtime task wrapping a promise, allowing status check and cancellation.