Remove uses of Task

This commit is contained in:
Christoph Hagen
2023-11-08 10:24:50 +01:00
parent 037d146aba
commit 39766467e6
3 changed files with 25 additions and 23 deletions

View File

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