(reason?: any)
| 31 | * @returns the rejected sync promise |
| 32 | */ |
| 33 | export function rejectedSyncPromise<T = never>(reason?: any): PromiseLike<T> { |
| 34 | return new SyncPromise((_, reject) => { |
| 35 | reject(reason); |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | type Executor<T> = (resolve: (value?: T | PromiseLike<T> | null) => void, reject: (reason?: any) => void) => void; |
| 40 |
no outgoing calls