Skip to content

Commit

Permalink
feat: add standalone and subclass impls
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskuske committed Nov 26, 2022
1 parent 854a68d commit 9ac8e2d
Show file tree
Hide file tree
Showing 7 changed files with 939 additions and 7 deletions.
10 changes: 10 additions & 0 deletions aplus-tests-adapter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { DeferredPromise } from './src/DeferredPromise'

process.on('unhandledRejection', () => {})

export const deferred = () => {
const promise = new DeferredPromise()
const { resolve, reject } = promise

return { promise, resolve, reject }
}

0 comments on commit 9ac8e2d

Please sign in to comment.