Zaandam, Amsterdam Area
github | linkedin | tomas@harkema.io
iOS and all-round software engineer loving hardware and user experience
let activity = NSUserActivity(activityType: shipment.key) | |
UIApplication.shared.requestSceneSessionActivation(nil, userActivity: activity, options: nil, errorHandler: {}) |
func whenAll<T>(tasks: [Task.Handle<T, Error>]) async throws -> [T] { | |
try await withThrowingTaskGroup(of: [T].self, body: { group in | |
for task in tasks { | |
group.async { | |
[try await task.get()] | |
} | |
} | |
return try await group.reduce([], +) | |
}) |
Zaandam, Amsterdam Area
github | linkedin | tomas@harkema.io
iOS and all-round software engineer loving hardware and user experience