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

Add public getters for isPending, isFulfilled and isRejected #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/Promises/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public final class Promise<Value> {
/// Underlying ObjC counterpart.
let objCPromise: ObjCPromise<AnyObject>

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

var isFulfilled: Bool { return objCPromise.__isFulfilled }
public var isFulfilled: Bool { return objCPromise.__isFulfilled }

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

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