Open BenLambertNcl opened 7 years ago
Is this something we can actually do? I'd assumed the public API had to be promises, because an async/await API can't be consumed by regular JavaScript..?
Hmm yeah you could be right. We could still use this for tests though instead of chainPromises
.
Might be better to use async/await over promises in the API to enhance readability. This could be especially useful in the tests, where were are currently using
chainPromises()
to make the code easier to read. Do we think this could be useful?