summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_util/async.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/_util/async.ts')
-rw-r--r--ext/node/polyfills/_util/async.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/node/polyfills/_util/async.ts b/ext/node/polyfills/_util/async.ts
index b508dbfed..a05b670e8 100644
--- a/ext/node/polyfills/_util/async.ts
+++ b/ext/node/polyfills/_util/async.ts
@@ -2,6 +2,9 @@
// This module is vendored from std/async/deferred.ts and std/async/delay.ts
// (with some modifications)
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
export interface Deferred<T> extends Promise<T> {
readonly state: "pending" | "fulfilled" | "rejected";
resolve(value?: T | PromiseLike<T>): void;