Skip to content

Consider adding configuration options for blocking executor to ExecutorModule #593

@okubis

Description

@okubis

It would be useful to have the option to configure coreSize and keepAlive values in ThreadPoolExecutorConfig passed to the blocking executor during its creation via ExecutorModule make methods.
Since by default the coreSize is set to 0 and the keepAlive to 1000 millis, there might be a large number of blocking threads created and closed if a program schedules repeated task to blocking executor with interval higher than the keepAlive.

It would be nice to add these parameters to the existing methods with default values set to the current value either directly or wrapped in the ThreadPoolExecutorConfig.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions