Sesame-Server/Sources/App/EventLoopScheduler.swift
2023-11-09 13:12:32 +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)
}
}