Remove uses of Task

This commit is contained in:
Christoph Hagen
2023-11-01 11:52:04 +01:00
parent aa474c365f
commit f3c59e0f3f
5 changed files with 38 additions and 37 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()