-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to assign Array #2
Comments
From what I have understood, you want to use your slice (array) as the source of workers, pass it to the Round Robin, to be able to use workers in an round-robin manner. All you need to do is unpack your array and pass it to the Variadic function.. This is how your code should look like:
I hope that answers your query? |
Thanks For you response & its help me.
Issue: redundant type from array, slice, or map composite literal One more thing I want to know, Can we use interface so that we may use multiple scheduling algo(i.e Round Robin, Hashing etc.). I want to implement 2-3 algorithms |
I have array of workers. Now I want to put these worker in round-robin. How may I pass array in New so that when I do Next task should assign the next worker.
Please help.
Thanks in advance.
The text was updated successfully, but these errors were encountered: