Skip to content

Commit

Permalink
Make FileStream Sendable if its Value is Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Mar 12, 2024
1 parent 96529e3 commit e5f3436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/FileStreamer/FileStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public struct FileStream<Value>: AsyncSequence {
}
}

extension FileStream: Sendable where Value: Sendable {}

extension FileStream {
private static func _gcdImplementation(for fileDescriptor: FileDescriptor,
using cont: Stream.Continuation,
Expand Down

0 comments on commit e5f3436

Please sign in to comment.