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

[Feature Request] Support Coroutine for Thread Creation in ScheduledThreadPoolExecutor #396

Open
wtt40122 opened this issue Jul 11, 2024 · 0 comments

Comments

@wtt40122
Copy link
Collaborator

Description

The current implementation of ScheduledThreadPoolExecutor does not directly support coroutines in thread creation and management. Coroutines offer a more lightweight and efficient concurrency mechanism, allowing the system to suspend and resume threads while waiting for operations to complete, rather than continuously occupying resources.

User Story

  • As a developer, I want to use coroutines to simplify the asynchronous programming model, reduce the overhead of thread creation, and improve the responsiveness of my applications.

Expected Feature

Allow ScheduledThreadPoolExecutor to use coroutines instead of traditional threads when executing scheduled tasks.

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

1 participant