vapor / postgres-nio

🐘 Non-blocking, event-driven Swift client for PostgreSQL.
https://api.vapor.codes/postgresnio/documentation/postgresnio/
MIT License
304 stars 70 forks source link

workaround DiscardingTaskGroup non-conformance with nightly compilers #478

Closed weissi closed 1 month ago

weissi commented 1 month ago

Some nightly Swift compilers complain that DiscardingTaskGroup doesn't conform to TaskGroupProtocol. This patch works around it.

gwynne commented 1 month ago

@weissi It seems according to the CI that this not only breaks 5.8+, it doesn't actually solve the error (despite the delightfully ironic "candidate exactly matches" message in the error spew 😆)

weissi commented 1 month ago

@weissi It seems according to the CI that this not only breaks 5.8+, it doesn't actually solve the error (despite the delightfully ironic "candidate exactly matches" message in the error spew 😆)

argh, seems to depend on the compiler & SDK version :P.

weissi commented 1 month ago

@gwynne better now