Created
June 15, 2016 09:22
-
-
Save zhxnlai/2d897f744aab9e8513b6774246c30abd to your computer and use it in GitHub Desktop.
Async Task Collection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let replicatedURLs = ["https://web1.swift.org", "https://web2.swift.org"] | |
let first = replicatedURLs.map(get).awaitFirst() | |
let messages = ["1", "2", "3"] | |
let all = messages.map(encrypt).awaitAll() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment