apache / apache/ozhera

[Feature Request] Support Coroutine for Thread Creation in ScheduledThreadPoolExecutor

Open
#396 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
122
Forks
46
Avg merge
11h 56m
Merged PRs (30d)
9

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.