• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

slikts / queueable / 5713880398

pending completion
5713880398

Pull #696

github

web-flow
Merge 4f6048e6f into e959bf528
Pull Request #696: chore(deps-dev): bump eslint and @types/eslint

57 of 57 branches covered (100.0%)

Branch coverage included in aggregate %.

155 of 155 relevant lines covered (100.0%)

12.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Deferred.ts
1
/**
2
 * Exposes the promise executor callbacks (resolve, reject).
3
 */
4
export default class Deferred<A> {
5
  promise: Promise<A>;
6
  constructor() {
7
    this.promise = new Promise((resolve, reject) => {
54✔
8
      this.resolve = (value) => {
54✔
9
        resolve(value);
43✔
10
        return this.promise;
43✔
11
      };
12
      this.reject = (reason) => {
54✔
13
        reject(reason);
1✔
14
        return this.promise;
1✔
15
      };
16
    });
17
  }
18
}
19

20
export default interface Deferred<A> {
21
  resolve(value: A | PromiseLike<A>): Promise<A>;
22
  reject(reason?: string | Error): Promise<A>;
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc