ozhera
ozhera copied to clipboard
[Feature Request] Support Coroutine for Thread Creation in ScheduledThreadPoolExecutor
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.