Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Promise properties: isPending, isFulfilled, isRejected from In… #31

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 8 additions & 6 deletions Sources/Promises/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,19 @@ public final class Promise<Value> {
}
return objCPromise
}

// MARK: Public

// MARK: Internal
public var isPending: Bool { return objCPromise.__isPending }

/// Underlying ObjC counterpart.
let objCPromise: ObjCPromise<AnyObject>
public var isFulfilled: Bool { return objCPromise.__isFulfilled }

var isPending: Bool { return objCPromise.__isPending }
public var isRejected: Bool { return objCPromise.__isRejected }

var isFulfilled: Bool { return objCPromise.__isFulfilled }
// MARK: Internal

var isRejected: Bool { return objCPromise.__isRejected }
/// Underlying ObjC counterpart.
let objCPromise: ObjCPromise<AnyObject>

var value: Value? {
let objCValue = objCPromise.__value
Expand Down