apple / swift-cassandra-client

Cassandra client in Swift
https://swiftpackageindex.com/apple/swift-cassandra-client/main/documentation/cassandraclient
Apache License 2.0
94 stars 21 forks source link

Add AsyncSequence conformance to PaginatedRows #25

Closed yim-lee closed 1 year ago

yim-lee commented 1 year ago

Motivation: PaginatedRows has forEach and map APIs for iterating and transforming all rows in the result. Their implementation uses recusion however and probably not the most performant.

Modifications: Conform PaginatedRows to AsyncSequence with underlying async stream to take advantage of language constructs and optimization.

Deprecate EventLoopFuture and async/await variants of forEach and map.

tomerd commented 1 year ago

cc @vlm

yim-lee commented 1 year ago

@swift-server-bot test this please

yim-lee commented 1 year ago

@swift-server-bot test this please

yim-lee commented 1 year ago

@swift-server-bot test this please

yim-lee commented 1 year ago

@swift-server-bot test this please

yim-lee commented 1 year ago

@swift-server-bot test this please

yim-lee commented 1 year ago

@swift-server-bot test this please

yim-lee commented 1 year ago

@swift-server-bot test this please