8000 Added `group_id` and `until_group()` to flow by astrochili · Pull Request #19 · britzl/ludobits · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added group_id and until_group() to flow #19

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

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Conversation

astrochili
Copy link
Contributor
@astrochili astrochili commented Jan 11, 2024

Hello,

There is already a flow.until_flows() method in the library, which waits for the completion of a certain list of flow instances. But it's not comfortable to use it when the parallel flows are scattered in different functions, modules and components.

So I added the ability to specify a group_id option for flows, as well as the function flow.until_group(group_id). the most popular group_id in practice will be, hm... animations I think! 😄

I have also added examples of using flow.until_flows() and flow.until_group() to the flow.script file.

Cheers!

Copy link
Owner
@britzl britzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition! See feedback on for loop

Copy link
Owner
@britzl britzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@britzl britzl merged commit fb5b56c into britzl:master Jan 11, 2024
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.

2 participants
0