mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-04-05 10:50:07 +02:00
♻️ Use discardableResult
- Removed ShellProtocol.quiet(), now that pipe() is discardable - Detecting PHP versions is also discardable - The system command is also discardable This is a nice quality of life change overall, and gets rid of a couple of silly `_ =` assignments.
This commit is contained in:
@@ -89,9 +89,9 @@ struct RealShellTest {
|
||||
let start = ContinuousClock.now
|
||||
|
||||
await withTaskGroup(of: Void.self) { group in
|
||||
group.addTask { await container.shell.quiet("php -r \"usleep(700000);\"") }
|
||||
group.addTask { await container.shell.quiet("php -r \"usleep(700000);\"") }
|
||||
group.addTask { await container.shell.quiet("php -r \"usleep(700000);\"") }
|
||||
group.addTask { await container.shell.pipe("php -r \"usleep(700000);\"") }
|
||||
group.addTask { await container.shell.pipe("php -r \"usleep(700000);\"") }
|
||||
group.addTask { await container.shell.pipe("php -r \"usleep(700000);\"") }
|
||||
}
|
||||
|
||||
let duration = start.duration(to: .now)
|
||||
|
||||
Reference in New Issue
Block a user