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.
I think it would be more relevant to use suspendable
List<T>
instead ofReceiveChannel<T>
in methods others thantail()
(whereReceiveChannel
is a perfect fit). The would makeCoroutineMongoOperations
even more closer to a suspendable version ofMongoOperations
which is a good thing IMO.