Fix semaphore

This commit is contained in:
Christoph Hagen 2023-02-16 23:33:19 +01:00
parent 9fcf1756ef
commit 623a226816

View File

@ -6,7 +6,7 @@ try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
defer { app.shutdown() }
private let semaphore = DispatchSemaphore(value: 1)
private let semaphore = DispatchSemaphore(value: 0)
Task {
try await configure(app)
semaphore.signal()