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
Eliminating the Scheduler type and module #84
Comments
I have not used it, but what if I will want to use more then |
There could be [some mechanism](http://hopac.github.io/Hopac/Hopac.html#def:val Hopac.Scheduler.Global.setCreate) to specify parameters such as the number of threads to use. |
ok, then Scheduler can be removed. |
I have actually been using it to compare concurrency with only one worker thread and demonstrate concurrency without parallelism, especially from within the same process. |
@neoeinstein Thanks for the note! Here is some more info why I'd like to remove schedulers. I'm not entirely satisfied with the current design/implementation of the Scheduler concept. In particular, jobs are not tied to a scheduler so they can move from one scheduler to another (unintentionally). Fixing this would add some (small) amount of overhead and also change the interface a bit. But the real problem is that the scheduler concept is unlikely to be frequently used, it adds quite a bit of interface complexity and some amount of implementation complexity and (unfortunately) my time is very limited. So, I'd rather simplify things and then make it easier to otherwise improve the library. |
+1 |
After having a bit of conversation with Marcus, we've found that |
Ideally such workarounds would be mostly unneeded and it is possible to change scheduling to mostly eliminate the need. That is actually the reason why I'd like to remove the scheduler - to make it easier to make the changes. Unfortunately, I'm not currently working on any F# projects and have no such projects in sight, so it is unlikely that I would have the opportunity to work towards that goal any soon. :( |
Is anyone using the
Scheduler
type/module?If not, I'd like to eliminate the whole thing (meaning that there would only be one global scheduler) and simplify the library interface.
The text was updated successfully, but these errors were encountered: