getAllUserComments

abstract suspend fun getAllUserComments(userID: Long): List<Comment>

Get all user comments.

If user has a lot of comments, it could take a long time to get all of them


abstract suspend fun <T> getAllUserComments(userID: Long, eachGetOperation: (List<Comment>) -> T): List<Comment>

Get all user comments and after each get operation, run lambda block with result of get operation.

If user has a lot of comments, it could take a long time to get all of them.

Samples

sampleEachOperation