Skip to content

Return queued updates when the event loop stops - #1164

Open
mctang24 wants to merge 1 commit into
rivo:masterfrom
mctang24:fix-queue-update-after-run
Open

mctang24 wants to merge 1 commit into
rivo:masterfrom
mctang24:fix-queue-update-after-run

Conversation

@mctang24

Copy link
Copy Markdown

Fixes #1163.\n\nQueueUpdate now returns without invoking its callback when the application is not running or the event loop stops before the callback runs. While Run is active, QueueUpdate still waits for the callback to execute.\n\nSync now uses QueueUpdate and follows the same shutdown behavior.\n\nThe added regression test posts a tcell EventError, waits for Run to return, and verifies that QueueUpdate does not block.\n\nVerified with go test ./..., go test -race ./..., and the regression test repeated 100 times.

@mctang24
mctang24 force-pushed the fix-queue-update-after-run branch 3 times, most recently from de1a9c7 to 045d9e1 Compare August 20, 2026 13:56
@mctang24
mctang24 force-pushed the fix-queue-update-after-run branch from 045d9e1 to a3316ec Compare August 20, 2026 14:05
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.

QueueUpdateDraw can block forever when Run exits concurrently

1 participant