-
-
Save jasdev/ed05f69fd1426022736b3b7ff091855a to your computer and use it in GitHub Desktop.
A trimmed `dump` of a `Subject` instance.
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
import Combine | |
enum SomeError: Error { | |
case anError | |
} | |
let subject = PassthroughSubject<Int, SomeError>() | |
subject.send(completion: .failure(.anError)) | |
dump(subject) | |
/// (1) Trimmed output, take note of the `active` property: | |
/// ```none | |
/// ▿ Combine.PassthroughSubject<Swift.Int, __lldb_expr_148.SomeError> #0 | |
/// - active: false | |
/// … | |
/// ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment