Closed Kreijstal closed 2 years ago
I wanted to use @masala/parser which uses objects that have .then methods, they are however NOT promises. which means they break on observable.
Example: ({ then: (_) => _(3) }) shouldn't be awaited since it isn't a promise..
({ then: (_) => _(3) })
The behavior is the same as Promise.resolve, so yes, we do await all thenables and not just literal promises. You can read about the specification here: https://promisesaplus.com/
I wanted to use @masala/parser which uses objects that have .then methods, they are however NOT promises. which means they break on observable.
Example:
({ then: (_) => _(3) })
shouldn't be awaited since it isn't a promise..