Avatar
omochimetaru 9/21/2023 2:07 AM
I've been pondering upon the following code for a function. public extension Database { func transaction(_ closure: @Sendable @escaping (Database) async throws -> T) async throws -> T { try await self.transaction { db -> EventLoopFuture in let promise = self.eventLoop.makePromise(of: T.self) promise.completeW...
👍 3
2:07 AM
フォーラムに投稿してみました。