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

Are there any plans to support coroutine for syscall? #55

Open
tqolf opened this issue Dec 7, 2024 · 1 comment
Open

Are there any plans to support coroutine for syscall? #55

tqolf opened this issue Dec 7, 2024 · 1 comment
Assignees

Comments

@tqolf
Copy link

tqolf commented Dec 7, 2024

Is your feature request related to a problem? Please describe.
non-blocking IO service with coroutine.

Describe the solution you'd like
For example, combine epoll/io_uring with libcopp via hooking syscalls, like Tencent/libco. Then we can call IO operateration without considering blocking api.

@owent
Copy link
Owner

owent commented Dec 7, 2024

No, ther is no plan.
Hooks of IO APIs will limit the IO/Event system and the ways differ from platform. Many large project have it's own event system.
libco only support linux, and some other implementation of coroutine hooks are limited to specify IO libraries.

The better practice is implementing these hooks as a plugin or a module of some application framework and using it's own executors and coroutine libraries.

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

No branches or pull requests

2 participants