The creator of Vapor gives an overview of what the core team has been working on this past year. He also discusses the future of Vapor and some exciting developments in server-side Swift.
HTTPRequest, on worker: Worker) -> Future<HTTPResponse> { let res = HTTPResponse(body: "Hello, world!") return worker.future(res) } } let group = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount) defer { try! group.syncShutdownGracefully() } let server = try HTTPServer.start( hostname: "localhost", port: 8080, responder: Hello(), on: group ).wait() try server.onClose.wait() <20 LoC 3.0