Home > AI > IOS > Combine >

print(_:to:)

Example 1:

let cancellable = (1...3).publisher
   .print("Logged a message", to: nil)
   .sink { _ in }

Leave a Reply