mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-26 04:37:48 +00:00
Change all AsyncStreaming availability from 26.2 to SwiftStdlib 5.0 (#421)
* Change all AsyncStreaming availability from 26.2 to SwiftStdlib 5.0 * Spelling
This commit is contained in:
1 parent
d0b4a06d0f
commit
b2beeb25b4
18 files changed
+9
-38
No files matched your search
+2
-2
@@ -962,7 +962,7 @@ final class MultiProducerSingleConsumerAsyncChannelTests: XCTestCase {
|
||||
_ = await iterator.next(isolation: nil)
|
||||
}
|
||||
|
||||
func testWatermarWithLotsOfElements() async throws {
|
||||
func testWatermarkWithLotsOfElements() async throws {
|
||||
await withThrowingTaskGroup(of: Void.self) { group in
|
||||
// This test should in the future use a custom task executor to schedule to avoid sending
|
||||
// 1000 elements.
|
||||
@@ -971,7 +971,7 @@ final class MultiProducerSingleConsumerAsyncChannelTests: XCTestCase {
|
||||
backpressureStrategy: .watermark(low: 2, high: 4)
|
||||
)
|
||||
let channel = channelAndSource.takeChannel()
|
||||
var source: MultiProducerSingleConsumerAsyncChannel.Source! = consume channelAndSource.source
|
||||
var source: MultiProducerSingleConsumerAsyncChannel.Source? = consume channelAndSource.source
|
||||
|
||||
group.addTask {
|
||||
var source = source.take()!
|
||||
|
||||
Reference in new issue
Block a user