Join Slack
Powered by
Future<Int> a = getAsyncA(); // start comput...
# coroutines
e
elizarov
12/16/2016, 9:31 AM
Future<Int> a = getAsyncA(); // start computing A, but don’t wait yet Future<Int> b = getAsyncB(); // start computing B
concurrently
, but don’t wait yet int c = await(a) + await(b); // now suspend until both A and B are computed
Open in Slack
Previous
Next