@@ -18,7 +18,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
1818
1919 func testSourceDeinitialized_whenChanneling_andNoSuspendedConsumer( ) async throws {
2020 let manualExecutor = ManualTaskExecutor ( )
21- try await withThrowingTaskGroup { group in
21+ try await withThrowingTaskGroup ( of : Void . self ) { group in
2222 let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
2323 of: Int . self,
2424 backpressureStrategy: . watermark( low: 5 , high: 10 )
@@ -32,7 +32,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
3232 }
3333
3434 group. addTask ( executorPreference: manualExecutor) {
35- await channel. next ( )
35+ _ = await channel. next ( )
3636 }
3737
3838 withExtendedLifetime ( source) { }
@@ -46,7 +46,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
4646
4747 func testSourceDeinitialized_whenChanneling_andSuspendedConsumer( ) async throws {
4848 let manualExecutor = ManualTaskExecutor ( )
49- try await withThrowingTaskGroup { group in
49+ try await withThrowingTaskGroup ( of : Void . self ) { group in
5050 let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
5151 of: Int . self,
5252 backpressureStrategy: . watermark( low: 5 , high: 10 )
@@ -59,7 +59,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
5959 }
6060
6161 group. addTask ( executorPreference: manualExecutor) {
62- await channel. next ( )
62+ _ = await channel. next ( )
6363 }
6464 manualExecutor. run ( )
6565 XCTAssertFalse ( didTerminate)
@@ -204,7 +204,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
204204
205205 func testSequenceDeinitialized_whenChanneling_andNoSuspendedConsumer( ) async throws {
206206 let manualExecutor = ManualTaskExecutor ( )
207- try await withThrowingTaskGroup { group in
207+ try await withThrowingTaskGroup ( of : Void . self ) { group in
208208 let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
209209 of: Int . self,
210210 backpressureStrategy: . watermark( low: 5 , high: 10 )
@@ -216,7 +216,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
216216 source. setOnTerminationCallback { didTerminate = true }
217217
218218 group. addTask ( executorPreference: manualExecutor) {
219- await asyncSequence. first { _ in true }
219+ _ = await asyncSequence. first { _ in true }
220220 }
221221
222222 withExtendedLifetime ( source) { }
@@ -598,7 +598,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
598598 }
599599
600600 func testWrite_whenConcurrentProduction( ) async throws {
601- await withThrowingTaskGroup { group in
601+ await withThrowingTaskGroup ( of : Void . self ) { group in
602602 let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
603603 of: Int . self,
604604 backpressureStrategy: . watermark( low: 2 , high: 5 )
0 commit comments