@@ -40,23 +40,23 @@ extension BasicConnection {
4040 nodes: [ Node ] ,
4141 pagination: any GraphPaginatable ,
4242 cursor: CursorType
43- ) where Node: GraphCursorable {
43+ ) where Node: GraphCursorable & Sendable {
4444 self . init ( nodes: nodes, pagination: pagination. pagination, cursor: cursor)
4545 }
4646 /// Build a connection from nodes for any forward paginatable input.
4747 public init (
4848 nodes: [ Node ] ,
4949 pagination: any GraphForwardPaginatable ,
5050 cursor: CursorType
51- ) where Node: GraphCursorable {
51+ ) where Node: GraphCursorable & Sendable {
5252 self . init ( nodes: nodes, pagination: pagination. pagination, cursor: cursor)
5353 }
5454 /// Build a connection from nodes with optional pagination input.
5555 public init (
5656 nodes: [ Node ] ,
5757 pagination: GraphPagination ? ,
5858 cursor: CursorType
59- ) where Node: GraphCursorable {
59+ ) where Node: GraphCursorable & Sendable {
6060 let result = EdgeBuilder . build (
6161 cursor: cursor,
6262 nodes: nodes,
@@ -70,5 +70,7 @@ extension BasicConnection {
7070
7171extension BasicConnection : Codable where Node: Codable { }
7272extension BasicConnection : Equatable where Node: Equatable { }
73+ extension BasicConnection : Sendable where Node: Sendable { }
7374extension BasicEdge : Codable where Node: Codable { }
7475extension BasicEdge : Equatable where Node: Equatable { }
76+ extension BasicEdge : Sendable where Node: Sendable { }
0 commit comments