True, promises and async/await syntax pretty much help reduce the complexity further…
It’s basically a glorified generator function that interface with promise.
RT @[email protected]
You should really strongly consider using PromiseKit. obv. https://twitter.com/Catfish_Man/status/1081581652147490817
One of the thing generator function is great at describing is a FSM. Making it great to describe asynchronous codes.
To make more sense, generation function flatten out your async code, making it imperative (which is a good thing here)…
From Singapore 🇸🇬 for Singaporeans by Singaporeans. But all are welcome!
This aims to be a local instance of Mastodon that primarily works as a community for Singaporeans which also participates in the greater fediverse that is Mastodon.
We adhere to Toot.cafe’s list of blocked instances.