AsyncSequence

public extension AsyncSequence
  • forEach(_:) Asynchronous

    Iterates over each element of an AsyncSequence

    Declaration

    Swift

    func forEach(_ block: (Element) async throws -> Void) async rethrows

    Parameters

    block

    block to run with element