Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
adding init; removing dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Stephens committed Dec 13, 2016
1 parent 85ad16f commit be76e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Snail/Observable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ public class Observable<T> : ObservableType {
public typealias E = T
private var isStopped: Int32 = 0
var eventHandlers: [(Event<E>) -> Void] = []
private var test: [(next: ((T) -> Void)?, done: (() -> Void)?, error: ((Error) -> Void)?)] = []

public init() {}

public func subscribe(_ handler: @escaping (Event<E>) -> Void) {
eventHandlers.append(handler)
Expand Down

0 comments on commit be76e79

Please sign in to comment.