Skip to content

Commit 70902b7

Browse files
committed
Fix.
1 parent a29e8b2 commit 70902b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

swift-sdk/Internal/Pending.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extension IterableError: LocalizedError {
2121
// either there is a success with result
2222
// or there is a failure with error
2323
// There is no way to set value a result in this class.
24-
class Pending<Value, Failure> where Failure: Error {
24+
public class Pending<Value, Failure> where Failure: Error {
2525
fileprivate var successCallbacks = [(Value) -> Void]()
2626
fileprivate var errorCallbacks = [(Failure) -> Void]()
2727

@@ -98,8 +98,8 @@ class Pending<Value, Failure> where Failure: Error {
9898
}
9999

100100
// need this class for testing failure
101-
class FailPending<Value, Failure: Error>: Pending<Value, Failure> {
102-
init(error: Failure) {
101+
public class FailPending<Value, Failure: Error>: Pending<Value, Failure> {
102+
public init(error: Failure) {
103103
super.init()
104104
self.result = .failure(error)
105105
}
@@ -194,7 +194,7 @@ extension Pending where Failure == Never {
194194
}
195195

196196
// This class takes the responsibility of setting value for Pending
197-
class Fulfill<Value, Failure>: Pending<Value, Failure> where Failure: Error {
197+
public class Fulfill<Value, Failure>: Pending<Value, Failure> where Failure: Error {
198198
public init(value: Value? = nil) {
199199
ITBDebug()
200200
super.init()

0 commit comments

Comments
 (0)