-
Notifications
You must be signed in to change notification settings - Fork 27
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
run asynchronously #23
Comments
Thank you! Always good to hear that my utility code is useful 👍 I'm currently not planning to add this to the package because I think asynchronous computation is a separate problem that is outside of the scope of functionality. However, you could easily do something like: fx = function(n) {
Sys.sleep(n)
n * 2
}
p = parallel::mcparallel(clustermq::Q(fx, n=1:5, n_jobs=1))
# do your other work ...
parallel::mccollect(p)[[1]] You may additionally want to suppress the progress bar. |
Despite the discussions in #86 and futureverse/future#204, I am still interested in an asynchronous
I am also curious about what it would take. Do we need different socket types? How much would we accomplish if we
|
And while a potential |
I think this is fixed on the |
No, these are unrelated: here is to run |
Note: an option would be to create a promise object that will wait for results only explicitly if it is accessed; this could even be |
Thanks for this package! It's very easy to use.
I'd like to ask if it's possible to run a job asynchronously, without waiting for the results.
For example, when I run:
I get:
While this message is being printed, I'm unable to continue executing commands. I have to wait for the submitted job to complete before I can continue working.
Is it possible to let R wait in the background, so I can continue working?
The text was updated successfully, but these errors were encountered: