Skip to content

Conversation

@echowandere
Copy link
Contributor

The previous attempt (#12968) didn't work because I tried to use CancellationToken, cc @mattsse pointed out that fork ops are sync and never hit await points.

Changed approach completely - now just calling abort() on the thread when the client disconnects. It's a bit harsh but it works. Added an AbortOnDrop wrapper that automatically kills the task when dropped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant