Skip to content

Commit

Permalink
Reorder the properties of Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
koher committed Oct 18, 2017
1 parent 945f07f commit 8c339c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/PromiseK/Promise.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import Foundation

public class Promise<Value> {
private let lock = NSRecursiveLock()

private var value: Value?
private var handlers: [(Value) -> ()] = []
private let lock = NSRecursiveLock()

public init(_ value: Value) {
self.value = value
Expand Down

0 comments on commit 8c339c6

Please sign in to comment.