Extendable Promise
Extendable ES6 Promise Implementation. This is simply a workaround to allow for subclassing a promise until it is actually supported. You can track whether or not that is yet done here.
This is particularly useful for creating promise language chains like this one:
withname"George Washington" and;
Example
; { super { }; thisdone = false; } let promise = ;console; promise;
Runnable Promise
This also supports a runnable promise which allows for the execution of the promise to occur as a function of the sub-class instead of as an argument passed to the constructor. Here is an example:
; { this_name = name; return this; } { ; } name'George Washington' ;
Installation
$ npm install --save-dev extendable-promise
Submitting Issues
Please file a github issue for any problems or feature requests.
Contributing
See Contributing