Intermediate
Swift
Q75 / 100
What is the difference between publisher and subject in Combine?
Correct! Well done.
Incorrect.
The correct answer is B) Publishers emit values over time; Subjects (PassthroughSubject, CurrentValueSubject) are publishers that can be imperatively sent values
B
Correct Answer
Publishers emit values over time; Subjects (PassthroughSubject, CurrentValueSubject) are publishers that can be imperatively sent values
Explanation
PassthroughSubject<Int, Never> lets you call send(5) to emit values imperatively. Used to bridge non-Combine code into Combine pipelines.
Progress
75/100