Implement async event streaming

This commit is contained in:
T. R. Bernstein
2026-03-11 23:45:14 +01:00
parent 5247d898cd
commit 58a05e9b61
10 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import Foundation
func withTempDir(_ body: (String) async throws -> Void) async throws {
let dir = FileManager.default.temporaryDirectory
.appendingPathComponent("InotifyIntegrationTests-\(UUID().uuidString)")
.path
try FileManager.default.createDirectory(atPath: dir, withIntermediateDirectories: true)
defer { try? FileManager.default.removeItem(atPath: dir) }
try await body(dir)
}