It is actually possible to use async/await with custom classes. I have a library which does monadic error handling like Option in Scala and Rust and perfectly works with async/await. I mean Promise already have error handling capabilities. In some sense, I tried to make a lightweight version of PromiseLike object, which is not able to work with async. If anybody is interested, you are welcome to check it out on npm - npmjs.com/package/amonad
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It is actually possible to use async/await with custom classes. I have a library which does monadic error handling like Option in Scala and Rust and perfectly works with async/await. I mean Promise already have error handling capabilities. In some sense, I tried to make a lightweight version of PromiseLike object, which is not able to work with async. If anybody is interested, you are welcome to check it out on npm - npmjs.com/package/amonad