3 ms·
You can get async / await for arbitrary monads in JavaScript using generator functions and coroutines.
by BreakfastB0b 8y ago
You can get async / await for arbitrary monads in JavaScript using generator functions and coroutines.
- michaelsbradley 8y agoAlso, IxJS and RxJS provide some really nice sugar for working with higher-level abstractions around "pull" and "push" flows. The protocols associated with `Symbol.Observable` and `Symbol.asyncIterator` have small surface areas, so it's not difficult to hand-write implementations (using generators and async generators) to adapt code that wouldn't otherwise fit in the flow.
- lenticular 8y agoThanks for the tip!