Dart: how to manage concurrency in async function
问题 I really like the async/await pattern in Dart. It allows me to write readable methods. But, there are a couple of things that are problematic, one in particular, I don't know hot to manage at all. The problem is that with async and multiple await inside a method, we introduce concurrency in the method. For example If I have a method: Future<int> foo(int value) async { await foo2(); await foo3(); await foo4(); int ret = foo5(value); return ret; } Well, this is a really simple example. The