Caps-Server/Sources/App/EventLoopScheduler.swift
2023-12-19 20:45:16 +01:00

15 lines
289 B
Swift

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