Caps-Server/Sources/App/EventLoopScheduler.swift

15 lines
289 B
Swift
Raw Normal View History

2023-10-02 00:04:36 +02:00
import Foundation
import Clairvoyant
import Vapor
import NIOCore
2023-12-06 09:13:59 +01:00
extension MultiThreadedEventLoopGroup: AsyncScheduler {
2023-12-19 20:45:16 +01:00
func test() {
}
2023-10-02 00:04:36 +02:00
2023-12-06 09:13:59 +01:00
public func schedule(asyncJob: @escaping @Sendable () async throws -> Void) {
_ = any().makeFutureWithTask(asyncJob)
2023-10-02 00:04:36 +02:00
}
}