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

Method for parallel execution of functions without wasting dozens of lines starting/joining threads #4

Open
Fabulani opened this issue Jun 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Fabulani
Copy link
Owner

Implement a method to one of the State Machine classes that executes functions in parallel by creating and joining threads with daemon=True. The goal is to simplify the execution of many parallel tasks, e.g. moving 5 robots in parallel by using 1 line of code instead of 10+.

Example code:

Scenario.parallel_execute(
    functions: list[
        tuple:(function, list[args])
    ]
)
@Fabulani Fabulani added the enhancement New feature or request label Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant