Why is my chained promise blocking?
问题 I have a class method that chains together other methods in the class, and also calls a method on another instance of the class: class Thing { doSomething(nextThing) { return new Promise((resolve) => this.initialize() .then(() => this.doA()) .then(() => { nextThing.initialize(); // call initialize() on another instance return this.doB(); }) .then(() => this.doC()) .then(resolve) ); } initialize() { return new Promise((resolve) => { // take a long time to do something // ... // ... resolve();