Sven A. Schmidt on Nostr: npub1sy696…g5dxr Why not just var results = [Data]() for url in urls { let res = ...
npub1sy696clgjzaqm2cg92dy0fvuf0m3kr0kn4f4yqlam0fpy03lfdsqpg5dxr (npub1sy6…5dxr) Why not just
var results = [Data]()
for url in urls {
let res = try await downloadStuff(url: url)
results.append(res)
}
Or is that what you mean by “AsyncSequence”? I’m guessing not, because that’s a regular sequence.
var results = [Data]()
for url in urls {
let res = try await downloadStuff(url: url)
results.append(res)
}
Or is that what you mean by “AsyncSequence”? I’m guessing not, because that’s a regular sequence.