-
-
Save jasdev/22ee41391380af344f7620b7bc007d8b to your computer and use it in GitHub Desktop.
Trying to log out `Sink`s properties.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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