feat(sync): добавил cooperative-отмену sync и pipeline-задач
ensureActive в StorageSyncEngine, flush журнала перед чтением, Cancelled в StorageSyncRunOutcome и TaskContext.ensureNotCancelled.
This commit is contained in:
@@ -14,4 +14,7 @@ interface TaskContext {
|
||||
fun log(level: TaskLogLevel, key: TaskLogKey)
|
||||
|
||||
fun fail(error: WallencException): Nothing
|
||||
|
||||
/** Проверяет, что задача не отменена; бросает [kotlinx.coroutines.CancellationException] при отмене. */
|
||||
suspend fun ensureNotCancelled()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user