Skip to content

Commit

Permalink
Added a public initializer.
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyclaysmith committed Feb 19, 2015
1 parent d6f52a2 commit a52fa0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions promises/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public class Promise<T:Any> {
private var _thens: [((result:T?) -> ())] = []
private var _fails: [(error:String) -> Void] = []

public init(){

}

// Resolve method.
//
// Returns a resolve function that loops through pending callbacks,
Expand Down

0 comments on commit a52fa0c

Please sign in to comment.