Instantly share code, notes, and snippets.

View promise.js
// Implementation
class Promise {}
// Test Code
const adapter = {
deferred() {
const pending = {};
pending.promise = new Promise((resolver, reject) => {
pending.resolve = resolver;
pending.reject = reject;
View bumpme
Mon May 9 15:36:45 UTC 2016