Skip to content

Commit

Permalink
related to warnings dselivanov#335, see also HenrikBengtsson/future#218
Browse files Browse the repository at this point in the history
  • Loading branch information
dselivanov committed Nov 30, 2022
1 parent 311c483 commit 6711d31
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions R/mc_queue.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ mc_queue = function(x,
finished_jobs = parallel::mccollect(jobs = jobs_in_progress, wait = FALSE)
finished_jobs_ids = names(finished_jobs)


if(length(finished_jobs_ids) > 0) {
# will signal the job as terminating
parallel::mccollect(jobs = jobs_in_progress[finished_jobs_ids], wait = FALSE)
}

for(finished_job_id in finished_jobs_ids) {

result[[finished_job_id]] = finished_jobs[[finished_job_id]]
Expand Down

0 comments on commit 6711d31

Please sign in to comment.