Fix semaphore

This commit is contained in:
Christoph Hagen
2023-02-16 23:33:39 +01:00
parent 1927a35d37
commit e2b1fb58e9
2 changed files with 2 additions and 2 deletions

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()