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

Usage ? #1

Open
FluffyDiscord opened this issue Feb 29, 2020 · 1 comment
Open

Usage ? #1

FluffyDiscord opened this issue Feb 29, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@FluffyDiscord
Copy link

can you add example usage ? how do i specify the logic which i want to use in parallel, how do i use the submit() ? pass array of what

in pthreads you sent class implementing Threaded interface to the pool

@dotfry
Copy link
Member

dotfry commented Jun 14, 2020

Add closure to constructor.
In submit() you can pass any arguments, that closure in constructor will recieve.

First is argument is ThreadConfigInterface, other is arguments that you pass to submit().

@dotfry dotfry added the documentation Improvements or additions to documentation label Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants