From c48d1d328531488094d35f4765cabba4a201d6cc Mon Sep 17 00:00:00 2001 From: Mathew Date: Mon, 22 Apr 2024 18:33:58 +1000 Subject: [PATCH] expose cancellation state --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 873902b..72b0d1d 100644 --- a/index.js +++ b/index.js @@ -119,6 +119,8 @@ Q.Promise = QPromise Q.CancellationError = CancellationError +Q.CancellationState = CancellationState + function AlreadyCancelledFn(){ throw new Error('Already cancelled') }