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

add call back function support to decide generator scheduling #6

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

dwarakaprasad
Copy link
Contributor

@dwarakaprasad dwarakaprasad commented Mar 9, 2024

This PR expands ComposeOptions.schedule option to allow a function to decide the scheduling.

function: generater: Basegenerator => boolean

The function receives the generator instance as the parameter and must return a boolean that will decide the scheduling. A true return value schedules the generator to be run under environment:run loop and a false queues the generator tasks immediately.

requiredby jhipster/generator-jhipster#25445

@mshima mshima merged commit ed13f13 into yeoman:main Mar 9, 2024
9 checks passed
mshima pushed a commit that referenced this pull request Mar 9, 2024
…uling (#6)

* add call back function support to deceide generator scheduling

requiredby jhipster/generator-jhipster#25445

* incorporate review suggestions
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

Successfully merging this pull request may close these issues.

None yet

2 participants