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.

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)…

Sign in to participate in the conversation

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’s list of blocked instances.