Created
          July 30, 2021 10:16 
        
      - 
      
 - 
        
Save jhunterkohler/3a6f063d7cc73dc43ed34d09917ef465 to your computer and use it in GitHub Desktop.  
    control your promises
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | export class Resolvable extends Promise { | |
| constructor() { | |
| let _resolve; | |
| let _reject; | |
| super((resolve, reject) => { | |
| _resolve = resolve; | |
| _reject = reject; | |
| }); | |
| this.resolve = _resolve; | |
| this.reject = _reject; | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment