Sesame-Server/Sources/App/EventLoopScheduler.swift

11 lines
245 B
Swift
Raw Normal View History

2023-10-01 19:26:31 +02:00
import Foundation
import Vapor
2023-10-24 19:09:49 +02:00
import Clairvoyant
2023-10-01 19:26:31 +02:00
2023-11-09 13:12:32 +01:00
extension MultiThreadedEventLoopGroup: AsyncScheduler {
2023-10-01 19:26:31 +02:00
2023-11-09 13:12:32 +01:00
public func schedule(asyncJob: @escaping @Sendable () async throws -> Void) {
_ = any().makeFutureWithTask(asyncJob)
2023-10-01 19:26:31 +02:00
}
}