Skip to content

Cancellation flow#26

Merged
anthony1810 merged 4 commits into
anthony1810:mainfrom
ThangKM:cancellation_flow
Jun 8, 2026
Merged

Cancellation flow#26
anthony1810 merged 4 commits into
anthony1810:mainfrom
ThangKM:cancellation_flow

Conversation

@ThangKM

@ThangKM ThangKM commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

refactor(cancellation): propagate errors through waitComplete and fix loadingFinished paths

Make AnyTask.waitComplete throwing; use task.value instead of task.result so cancellation propagates
Call loadingFinished in each error branch of dispatch rather than after catch
Rethrow errors from dispatch so callers receive cancellation/error signals
Conform ActionLocker.Errors to NonPresentableError
Fix unlock to removeValue instead of setting false

anthony1810 and others added 3 commits March 19, 2026 15:29
… loadingFinished paths

- Make AnyTask.waitComplete throwing; use task.value instead of task.result so cancellation propagates
- Call loadingFinished in each error branch of dispatch rather than after catch
- Rethrow errors from dispatch so callers receive cancellation/error signals
- Conform ActionLocker.Errors to NonPresentableError
- Fix unlock to removeValue instead of setting false
@ThangKM ThangKM requested a review from anthony1810 June 8, 2026 03:53
@anthony1810 anthony1810 merged commit 87abace into anthony1810:main Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants