             }
         }
     }
+    
 }
 
-
-
-
 extension Future {
+    
     public func map<U>(_ f: @escaping (T) throws -> U) -> Future<U> {
         return Future<U> { completion in
             self.then { result in

    
    public typealias ResultType = Result<T>
    
    
    private let operation: ( @escaping (ResultType) -> ()) -> ()

    
    public init(_ result: ResultType) {
        self.init { $0(result) }

            }
        }
    }
    
}

