Skip to content

Instantly share code, notes, and snippets.

@jasdev
Created April 30, 2020 19:37
Show Gist options
  • Save jasdev/22ee41391380af344f7620b7bc007d8b to your computer and use it in GitHub Desktop.
Save jasdev/22ee41391380af344f7620b7bc007d8b to your computer and use it in GitHub Desktop.
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