Skip to content

Commit

Permalink
Document the new semantics of materialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed May 26, 2015
1 parent 8154605 commit 936e930
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ReactiveCocoa/Swift/Signal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ public func skip<T, E>(count: Int) -> Signal<T, E> -> Signal<T, E> {
}
}

/// Treats all Events from the input signal as plain values, allowing them to be
/// manipulated just like any other value.
/// Treats Events (except for Interrupted) from the input signal as plain
/// values, allowing them to be manipulated just like any other value.
///
/// In other words, this brings Events “into the monad.”
/// In other words, this brings the Next, Completed, and Error Events “into the monad.”
public func materialize<T, E>(signal: Signal<T, E>) -> Signal<Event<T, E>, NoError> {
return Signal { observer in
return signal.observe(Signal.Observer { event in
Expand Down

0 comments on commit 936e930

Please sign in to comment.