Home > AI > IOS > Combine >

last()

Example (Apple Offical)


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

Leave a Reply