Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 6 Support #23

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Package@swift-6.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ let package = Package(
name: "AsyncSequenceReader",
dependencies: [],
swiftSettings: [
.swiftLanguageVersion(.v6),
.swiftLanguageMode(.v6),
]
),
.testTarget(
name: "AsyncSequenceReaderTests",
dependencies: ["AsyncSequenceReader"]),
dependencies: ["AsyncSequenceReader"],
swiftSettings: [
.swiftLanguageMode(.v6),
]
),
]
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Please check the [releases](https://github.com/mochidev/AsyncSequenceReader/rele

```swift
dependencies: [
.package(url: "https://github.com/mochidev/AsyncSequenceReader.git", .upToNextMinor(from: "0.3.0")),
.package(url: "https://github.com/mochidev/AsyncSequenceReader.git", .upToNextMinor(from: "0.3.1")),
],
...
targets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncBufferedIteratorTests: XCTestCase {
final class AsyncBufferedIteratorTests: XCTestCase, @unchecked Sendable {
func testBufferIteratorFromStream() async throws {
let testStream = AsyncStream<Int> { continuation in
for value in 0..<10 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncIteratorMapSequenceTests: XCTestCase {
final class AsyncIteratorMapSequenceTests: XCTestCase, @unchecked Sendable {
func testIteratorMapFromStream() async throws {
let testStream = AsyncStream<String> { continuation in
let data = ["2", "Hello,", "World!", "4", "My", "name", "is", "Dimitri.", "0", "1", "Bye!"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncReadUpToCountSequenceTests: XCTestCase {
final class AsyncReadUpToCountSequenceTests: XCTestCase, @unchecked Sendable {
func testIteratorMapFromStream() async throws {
struct LocalError: Error {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncReadUpToElementsSequenceTests: XCTestCase {
final class AsyncReadUpToElementsSequenceTests: XCTestCase, @unchecked Sendable {
func testIteratorMapUpToIncludingSequence() async throws {
struct LocalError: Error {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncSequenceReaderTests: XCTestCase {
final class AsyncSequenceReaderTests: XCTestCase, @unchecked Sendable {
// MARK: - Test Manual Iteration

func testReadSequenceFromStream() async throws {
Expand Down
Loading