2023-10-02 00:04:36 +02:00
|
|
|
import Foundation
|
|
|
|
import Clairvoyant
|
|
|
|
import Vapor
|
|
|
|
import NIOCore
|
|
|
|
|
2023-12-06 09:13:59 +01:00
|
|
|
extension MultiThreadedEventLoopGroup: AsyncScheduler {
|
2023-10-02 00:04:36 +02:00
|
|
|
|
2023-12-06 09:13:59 +01:00
|
|
|
public func schedule(asyncJob: @escaping @Sendable () async throws -> Void) {
|
|
|
|
_ = any().makeFutureWithTask(asyncJob)
|
2023-10-02 00:04:36 +02:00
|
|
|
}
|
|
|
|
}
|