Skip to content

Conversation

@fedacking
Copy link
Contributor

Motivation

In the tokio runtime (and other cooperative multitasking models) a single blocking task may stop executions or degrade performance of the entire program, as detailed in issue #8.

Description

This PR adds a method start_blocking to the Genserver that launches the task in it's own thread, stopping from blocking. This is the same api both on concurrency and threads submodules, although threads already does this for every task.

Closes issue #8

Copy link
Collaborator

@ElFantasma ElFantasma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fedacking fedacking merged commit 28f7a7b into main Jun 17, 2025
@juan518munoz juan518munoz deleted the blocking_news branch July 18, 2025 19:46
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.

3 participants