Schafkopf-Server/Sources/App/EventLoopScheduler.swift

11 lines
245 B
Swift
Raw Normal View History

2023-10-02 00:37:50 +02:00
import Foundation
import Vapor
2023-12-06 10:02:43 +01:00
import Clairvoyant
2023-10-02 00:37:50 +02:00
2023-12-06 10:02:43 +01:00
extension MultiThreadedEventLoopGroup: AsyncScheduler {
2023-10-02 00:37:50 +02:00
2023-12-06 10:02:43 +01:00
public func schedule(asyncJob: @escaping @Sendable () async throws -> Void) {
_ = any().makeFutureWithTask(asyncJob)
2023-10-02 00:37:50 +02:00
}
}