Skip to content

Commit

Permalink
Future
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed May 29, 2019
1 parent fe4107b commit a97fa37
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Sources/V4Migration/Vapor/Future.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// Future.swift
// V4Migration
//
// Created by Ondrej Rafaj on 29/05/2019.
//

import Foundation
import Vapor


@available(*, unavailable, renamed: "EventLoopFuture", message: "[Migration] Renamed to EventLoopFuture")
public struct Future { }


extension EventLoopFuture {

@available(*, unavailable, renamed: "flatMapErrorThrowing", message: "[Migration] Renamed to EventLoopFuture")
public func catchMap(_ callback: @escaping (Error) throws -> Value) -> EventLoopFuture<Value> {
fatalError()
}

}

0 comments on commit a97fa37

Please sign in to comment.