how are people handling unwrapping values from promises a la async/await when it comes to doing interop w vanilla js?
There;s also kitchen-async
https://github.com/athos/kitchen-async
By just calling (.then promise on-resolve)
. Or using some wrapper library, like promesa
.
I typically just chain .then
, but have on one or two occasions used https://github.com/athos/kitchen-async
They are callbacks.. no matter how hard you try to hide them ๐. Personally I prefer using vanilla promises. Promesa lib has a macro that looks like async/await.
The macro is named โpletโ if you want to look it up
Itโs kinda cool but I think Iโve never used it in a serious project