Adds next method to variable.
This commit is contained in:
parent
8ffa6035a2
commit
d4665492a3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue