Open freddiecoleman opened 7 years ago
Well, that should solve all the racial conditions.
It's going to be pretty hard to write a unit test for a promise that never resolves.
Do you just leave the test running forever?
It should resolve with undefined
value, then when a second question is asked any earlier promise might reject or resolve again with some random value or exception.
When you ask a question she should reply with an empty promise.