Skip to content

Instantly share code, notes, and snippets.

@jasdev

jasdev/logging_out_sink.swift Secret

Created Apr 30, 2020
Embed
What would you like to do?
Trying to log out `Sink`s properties.
let sink = Subscribers.Sink<Int, Never>(
receiveCompletion: { _ in },
receiveValue: { _ in }
)
dump(sink)
print(Mirror(reflecting: sink).children.count)
/// (1) Output:
/// ```none
/// - Sink #0
/// 0
/// ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment