Skip to content

Instantly share code, notes, and snippets.

@eunjin3786
Created January 25, 2022 09:30
Show Gist options
  • Save eunjin3786/2abf336fcac2482a8c274da2b24149eb to your computer and use it in GitHub Desktop.
Save eunjin3786/2abf336fcac2482a8c274da2b24149eb to your computer and use it in GitHub Desktop.
let infallible = Infallible.from([1,2,3])
Task {
for await value in infallible.values {
print("Got a value:", value)
}
}
// Prints
Got a value: 1
Got a value: 2
Got a value: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment