@@ -18,7 +18,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
18
18
19
19
func testSourceDeinitialized_whenChanneling_andNoSuspendedConsumer( ) async throws {
20
20
let manualExecutor = ManualTaskExecutor ( )
21
- try await withThrowingTaskGroup { group in
21
+ try await withThrowingTaskGroup ( of : Void . self ) { group in
22
22
let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
23
23
of: Int . self,
24
24
backpressureStrategy: . watermark( low: 5 , high: 10 )
@@ -32,7 +32,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
32
32
}
33
33
34
34
group. addTask ( executorPreference: manualExecutor) {
35
- await channel. next ( )
35
+ _ = await channel. next ( )
36
36
}
37
37
38
38
withExtendedLifetime ( source) { }
@@ -46,7 +46,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
46
46
47
47
func testSourceDeinitialized_whenChanneling_andSuspendedConsumer( ) async throws {
48
48
let manualExecutor = ManualTaskExecutor ( )
49
- try await withThrowingTaskGroup { group in
49
+ try await withThrowingTaskGroup ( of : Void . self ) { group in
50
50
let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
51
51
of: Int . self,
52
52
backpressureStrategy: . watermark( low: 5 , high: 10 )
@@ -59,7 +59,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
59
59
}
60
60
61
61
group. addTask ( executorPreference: manualExecutor) {
62
- await channel. next ( )
62
+ _ = await channel. next ( )
63
63
}
64
64
manualExecutor. run ( )
65
65
XCTAssertFalse ( didTerminate)
@@ -204,7 +204,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
204
204
205
205
func testSequenceDeinitialized_whenChanneling_andNoSuspendedConsumer( ) async throws {
206
206
let manualExecutor = ManualTaskExecutor ( )
207
- try await withThrowingTaskGroup { group in
207
+ try await withThrowingTaskGroup ( of : Void . self ) { group in
208
208
let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
209
209
of: Int . self,
210
210
backpressureStrategy: . watermark( low: 5 , high: 10 )
@@ -216,7 +216,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
216
216
source. setOnTerminationCallback { didTerminate = true }
217
217
218
218
group. addTask ( executorPreference: manualExecutor) {
219
- await asyncSequence. first { _ in true }
219
+ _ = await asyncSequence. first { _ in true }
220
220
}
221
221
222
222
withExtendedLifetime ( source) { }
@@ -598,7 +598,7 @@ final class MultiProducerSingleConsumerChannelTests: XCTestCase {
598
598
}
599
599
600
600
func testWrite_whenConcurrentProduction( ) async throws {
601
- await withThrowingTaskGroup { group in
601
+ await withThrowingTaskGroup ( of : Void . self ) { group in
602
602
let channelAndSource = MultiProducerSingleConsumerChannel . makeChannel (
603
603
of: Int . self,
604
604
backpressureStrategy: . watermark( low: 2 , high: 5 )
0 commit comments