Skip to content

Commit

Permalink
Add @available to HBAsyncJob extension
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 22, 2021
1 parent 0b9ae82 commit 8d2ddd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/HummingbirdJobs/AsyncAwaitSupport/AsyncJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public protocol HBAsyncJob: HBJob {
func execute(logger: Logger) async throws
}

@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
extension HBAsyncJob {
func execute(on eventLoop: EventLoop, logger: Logger) -> EventLoopFuture<Void> {
let promise = eventLoop.makePromise(of: Void.self)
Expand Down

0 comments on commit 8d2ddd2

Please sign in to comment.