 }
 
 extension TaskResult {
-    var value: Value? {
+    public var value: Value? {
         switch self {
         case .success(let value):
             return value

        }
    }

    var error: Error? {
        switch self {
        case .success(_):
            return nil

}

extension Task {
    public func toObjectiveC(completionHandler handler: @escaping (SuccessValue?, NSError?) -> Void) {
        upon(.main) { (result) in
            switch result {
            case .success(let value):
