vapor / core

🌎 Utility package containing tools for byte manipulation, Codable, OS APIs, and debugging.
MIT License
82 stars 50 forks source link

LazyFuture should support throwing #143

Closed andrewtheis closed 6 years ago

andrewtheis commented 6 years ago

Currently, LazyFuture is defined as:

public typealias LazyFuture<T> = () -> (Future<T>)

In order to support chaining various NIO/Async functions, it should support throwing:

public typealias LazyFuture<T> = () throws -> (Future<T>)