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. twitter.com/Catfish_Man/status
twitter.com/mxcl/status/108166

One of the thing generator function is great at describing is a FSM. Making it great to describe asynchronous codes.

Stan Chang Khin Boon
Follow

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
Kopiti.am

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.