AsyncForEach

    An element that lazily renders HTML for each element of an AsyncSequence.

    AsyncForEach.swift:13
    struct AsyncForEach<Source, Content> where Source : AsyncSequence, Content : HTML

    The this element can only be rendered in an async context (ie: by calling render(into:chunkSize:) or renderAsync).

    ul {
      let users = try await db.users.findAll()
      AsyncForEach(users) { user in
        li { "\(user.name) \(user.favoriteProgrammingLanguage)" }
      }
    }

    Citizens in Elementary

    Conformances

    Type members

    Show system interfaces (2)

    Hide system interfaces

    Type features

    Show implementation details (2)

    Hide implementation details

    Instance features

    Show obsolete interfaces (1)

    Hide obsolete interfaces

    Show system interfaces (1)

    Hide system interfaces