Skip to content

Instantly share code, notes, and snippets.


jasdev/subject_sump.swift Secret

Last active May 1, 2020
What would you like to do?
A trimmed `dump` of a `Subject` instance.
import Combine
enum SomeError: Error {
case anError
let subject = PassthroughSubject<Int, SomeError>()
subject.send(completion: .failure(.anError))
/// (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