Home > AI > IOS > Combine >

first()

Example (Apple Official):

let numbers = (-10...10)
let cancellable = numbers.publisher
    .first()
    .sink { print("\($0)") }

Leave a Reply