p-cancelable enhances promises with cancellation capabilities. Offering a streamlined approach to aborting ongoing asynchronous operations, it integrates seamlessly into existing promise-based workflows. This library provides a robust CancelablePromise class and utility functions for creating and managing cancellable promises. This allows for improved resource management and prevents unnecessary computations when results are no longer needed, especially useful in applications with user interactions or complex asynchronous tasks.