Getting Started with Async¶
This package is included with Vapor and exported by default. You will have access to all
Async APIs when you import
import Vapor // implies `import Async`
The Async module, part of the larger Vapor Core package, can also be used on its own with any Swift project.
To include it in your package, add the following to your
// swift-tools-version:4.0 import PackageDescription let package = Package( name: "Project", dependencies: [ ... .package(url: "https://github.com/vapor/core.git", from: "3.0.0"), ], targets: [ .target(name: "Project", dependencies: ["Async", ... ]) ] )
import Async to access the APIs.
Continue to Async → Overview for an overview of Async's features.