Schafkopf-Server/Sources/App/EventLoopScheduler.swift
2023-12-06 10:02:43 +01:00

11 lines
245 B
Swift

import Foundation
import Vapor
import Clairvoyant
extension MultiThreadedEventLoopGroup: AsyncScheduler {
public func schedule(asyncJob: @escaping @Sendable () async throws -> Void) {
_ = any().makeFutureWithTask(asyncJob)
}
}