We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2c712 commit 8b41638Copy full SHA for 8b41638
src/templates/core/CancelablePromise.hbs
@@ -21,8 +21,6 @@ export interface OnCancel {
21
}
22
23
export class CancelablePromise<T> implements Promise<T> {
24
- readonly [Symbol.toStringTag]: string;
25
-
26
#isResolved: boolean;
27
#isRejected: boolean;
28
#isCancelled: boolean;
@@ -85,6 +83,10 @@ export class CancelablePromise<T> implements Promise<T> {
85
83
});
86
84
87
+ get [Symbol.toStringTag]() {
+ return "Cancellable Promise";
88
+ }
89
+
90
public then<TResult1 = T, TResult2 = never>(
91
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
92
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null
0 commit comments