I have an array of promises and I need to resolve them all and take a list of the ones that succeeded. As I understand it, I need to use join
to do that. However, when I write:
let promises: [Promise<Request>] = /* ... */
let foo = join(promises)
I get a compile time error Cannot invoke 'join' with argument list of type '([Promise<Request>])'
Am I doing something wrong, or is join
not working in Swift?