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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user