Skip to content

Asyncio's level cancellation support and a lil more#2

Merged
ACherryJam merged 18 commits intodevelopfrom
feature/level_cancellation
Nov 11, 2025
Merged

Asyncio's level cancellation support and a lil more#2
ACherryJam merged 18 commits intodevelopfrom
feature/level_cancellation

Conversation

@ACherryJam
Copy link
Copy Markdown
Owner

No description provided.

1. 3.10 tests crashing with "TypeError: Cannot instantiate typing.Union"
Added type to TaskiqDepends so dependency would instantiate correctly

2. 3.9 tests crashing with "ImportError: cannot import name 'TypeAlias' from 'typing'"
Added TypeAlias from typing_extensions

3. Rename LevelCancellation to EdgeCancellation and vice versa because
my terminology was wrong :p

4. Move cancellation handlers to a separate submodule to restrict edge cancellation
to Python 3.11+ because that uses asyncio.TaskGroup

5. InMemoryBackend asyncio.Queue behaviour changes for 3.9 support

6. Typing fixes
@ACherryJam ACherryJam force-pushed the feature/level_cancellation branch from d51969b to 4581f46 Compare November 9, 2025 19:24
@ACherryJam ACherryJam force-pushed the feature/level_cancellation branch 3 times, most recently from 28c59b9 to 91fe990 Compare November 11, 2025 11:38
@ACherryJam ACherryJam force-pushed the feature/level_cancellation branch from 91fe990 to d6adb15 Compare November 11, 2025 12:04
@ACherryJam ACherryJam merged commit b2cc9a7 into develop Nov 11, 2025
25 checks passed
@ACherryJam ACherryJam deleted the feature/level_cancellation branch November 11, 2025 21:25
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.

1 participant