Comment on An open question (rant) about Node.jsparentComments−eldude12y co(function *(){ let promiseA = makeHttpRequestA() let promiseB = makeHttpRequestBFromA(yield promiseA) var res = new Foobar(yield promiseA, yield promiseB); })();−densh12ywith scala.async [1]: val res = async { val a = await(makeHttpRequestA()) val b = await(makeHttpRequestBFromA(a)) new Foobar(a, b) } [1] https://github.com/scala/async
Comments
with scala.async [1]:
[1] https://github.com/scala/async