/missing_autoconnect.swift Secret
Last active
April 14, 2020 19:01
`.cher` sans `autoconnect` attempt.
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 PlaygroundSupport /// (1) Adding the needed Playground-related import. | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
extension Publisher { | |
func cher() -> Publishers.Multicast<Self, PassthroughSubject<Output, Failure>> { /* … */ } | |
} | |
var subscriptions = Set<AnyCancellable>() | |
Just(1) | |
.cher() | |
.sink { print($0) } | |
.store(in: &subscriptions) | |
/// (2) Aaand no logs are outputted. Houston, we have a problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment