Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gio: add spawn_blocking() #818

Merged
merged 4 commits into from
Dec 14, 2022
Merged

Conversation

jf2048
Copy link
Member

@jf2048 jf2048 commented Oct 31, 2022

Fixes #792

After looking at the equivalent tokio API I noticed we don't install unwind handlers, maybe that is something that should happen?

gio/src/task.rs Outdated Show resolved Hide resolved
gio/src/task.rs Outdated Show resolved Hide resolved
@sdroege
Copy link
Member

sdroege commented Nov 1, 2022

Looks good to me otherwise

@jf2048 jf2048 force-pushed the task-spawn-blocking branch from f13e733 to f7deb7d Compare November 8, 2022 22:45
@jf2048 jf2048 force-pushed the task-spawn-blocking branch 2 times, most recently from 9b62dbc to 0b61fa7 Compare November 17, 2022 03:05
@sdroege
Copy link
Member

sdroege commented Nov 17, 2022

Looks good to me apart from those minor things now :) That looks like a great usability improvement!

@jf2048 jf2048 force-pushed the task-spawn-blocking branch from 0b61fa7 to 04f1ea3 Compare November 17, 2022 18:30
gio/src/task.rs Outdated Show resolved Hide resolved
glib/src/thread_pool.rs Outdated Show resolved Hide resolved
@jf2048 jf2048 force-pushed the task-spawn-blocking branch 2 times, most recently from 4302dff to 5ad903b Compare December 12, 2022 17:27
@jf2048 jf2048 force-pushed the task-spawn-blocking branch from 5ad903b to 2f2dbd4 Compare December 13, 2022 23:08
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.

Add a spawn_blocking method to run futures on a thread
4 participants