diff --git a/src/libs/futures/future.ts b/src/libs/futures/future.ts deleted file mode 100644 index 2140582..0000000 --- a/src/libs/futures/future.ts +++ /dev/null @@ -1,23 +0,0 @@ -export class Future { - - readonly ok: (x: T) => void - readonly err: (e: E) => void - - readonly promise: Promise - - /** - * A promise that's manually fullfilled or rejected - */ - constructor() { - let ok: (x: T) => void - let err: (e: E) => void - - this.promise = new Promise((pok, perr) => { - ok = pok - err = perr - }) - - this.ok = ok! - this.err = err! - } -}