scarylooking / theresamayjs

https://scarylooking.github.io/theresamayjs/
The Unlicense
115 stars 5 forks source link

Promise support? #1

Open freddiecoleman opened 7 years ago

freddiecoleman commented 7 years ago

When you ask a question she should reply with an empty promise.

Tok commented 7 years ago

Well, that should solve all the racial conditions.

Pesthuf commented 7 years ago

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?

Bartvds commented 7 years ago

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.