AsyncSequence
public extension AsyncSequence
-
forEach(_:Asynchronous) Iterates over each element of an AsyncSequence
Declaration
Swift
func forEach(_ block: (Element) async throws -> Void) async rethrowsParameters
blockblock to run with element
View on GitHub