I had not realised how awesome yield-style generators (Python, C#) are in combinations with promises. https://www.promisejs.org/generators/
-
-
Replying to @avibryant
@avibryant@glv What's the Scala syntax for monads?1 reply 0 retweets 0 likes -
Replying to @avibryant
@avibryant And here's the docs: http://docs.scala-lang.org/tutorials/FAQ/yield.html … On the surface it seems less powerful than ES6 yield+promises.2 replies 0 retweets 0 likes -
Replying to @tirsen
@tirsen here's an attempt to translate the async login example from your original link to an async Scala method: https://gist.github.com/avibryant/0008b001537fb975292b …2 replies 0 retweets 0 likes -
Replying to @avibryant
@avibryant interesting. Can you only "wait" for a future on top of the for? What if you need to add new futures in a loop or conditionally?2 replies 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.