konrad-kaminski / spring-kotlin-coroutine

Kotlin coroutine support for Spring.
448 stars 69 forks source link

Use suspendable List<T> instead of ReceiveChannel<T> for collections in CoroutineMongoOperations #6

Closed sdeleuze closed 6 years ago

sdeleuze commented 6 years ago

I think it would be more relevant to use suspendable List<T> instead of ReceiveChannel<T> in methods others than tail() (where ReceiveChannel is a perfect fit). The would make CoroutineMongoOperations even more closer to a suspendable version of MongoOperations which is a good thing IMO.

konrad-kaminski commented 6 years ago

Fixed in 0.3.1.