DATACMNS-1707 - Make CoroutineCrudRepository.deleteAll(Flow) suspended.

Delete by Flow is now suspended as the delete method completion is driven by the given Flow. To allow for synchronization, this method is suspended and awaits completion.
This commit is contained in:
Mark Paluch
2020-04-23 11:33:07 +02:00
parent ee207291b4
commit 03d5498c22

View File

@@ -147,7 +147,7 @@ interface CoroutineCrudRepository<T, ID> : Repository<T, ID> {
* @param entityStream must not be null.
* @throws IllegalArgumentException in case the given [entityStream][Flow] is null.
*/
fun <S : T> deleteAll(entityStream: Flow<S>)
suspend fun <S : T> deleteAll(entityStream: Flow<S>)
/**
* Deletes all entities managed by the repository.