ozhera icon indicating copy to clipboard operation
ozhera copied to clipboard

[Feature Request] Support Coroutine for Thread Creation in ScheduledThreadPoolExecutor

Open wtt40122 opened this issue 7 months ago • 0 comments

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.

wtt40122 avatar Jul 11 '24 08:07 wtt40122