Adds next method to variable.

This commit is contained in:
Krunoslav Zaher 2015-05-10 00:09:38 +02:00
parent 8ffa6035a2
commit d4665492a3
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ public class Variable<Element>: ReplaySubject<Element> {
public init() {
super.init(bufferSize: 1)
}
public func next(value: Element) {
on(.Next(Box(value)))
}
}
public func << <E>(variable: Variable<E>, element: E) {