Skip to content

Commit

Permalink
Make DataRow Sendable (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfett committed Mar 11, 2022
1 parent 1cd8d36 commit 8e341c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/PostgresNIO/New/Messages/DataRow.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#if swift(>=5.6)
@preconcurrency import NIOCore
#else
import NIOCore
#endif

/// A backend data row message.
///
Expand Down Expand Up @@ -116,3 +120,7 @@ extension DataRow {
return self[byteIndex]
}
}

#if swift(>=5.6)
extension DataRow: Sendable {}
#endif

0 comments on commit 8e341c1

Please sign in to comment.