diff --git a/Sources/Promises/Promise.swift b/Sources/Promises/Promise.swift index 52b9013..42f820a 100644 --- a/Sources/Promises/Promise.swift +++ b/Sources/Promises/Promise.swift @@ -30,6 +30,11 @@ public final class Promise { public static func pending() -> Promise { return Promise.init(ObjCPromise.__pending()) } + + /// Creates a new pending promise. + public convenience init() { + self.init(ObjCPromise.__pending()) + } /// Creates a new promise rejected with the given `error`. public convenience init(_ error: Error) {