diff --git a/Sources/Queues/AsyncScheduledJob.swift b/Sources/Queues/AsyncScheduledJob.swift index e97f3cd..c21472e 100644 --- a/Sources/Queues/AsyncScheduledJob.swift +++ b/Sources/Queues/AsyncScheduledJob.swift @@ -5,7 +5,7 @@ import Foundation #if compiler(>=5.5) && canImport(_Concurrency) /// Describes a job that can be scheduled and repeated @available(macOS 12, iOS 15, watchOS 8, tvOS 15, *) -protocol AsyncScheduledJob: ScheduledJob { +public protocol AsyncScheduledJob: ScheduledJob { var name: String { get } /// The method called when the job is run @@ -17,7 +17,7 @@ protocol AsyncScheduledJob: ScheduledJob { extension AsyncScheduledJob { public var name: String { "\(Self.self)" } - func run(context: QueueContext) -> EventLoopFuture { + public func run(context: QueueContext) -> EventLoopFuture { let promise = context.eventLoop.makePromise(of: Void.self) promise.completeWithTask { try await self.run(context: context)