`executor` `function(resolve, reject) { .... }` 2()
//
new Promise();
//
new Promise({
run: function() {... }
});
// (resolve)
new Promise(function() {
// do something
});
JavaScript