Skip to content

Commit

Permalink
run loop finalizers on exit - no practical difference but silences va…
Browse files Browse the repository at this point in the history
…lgrind
  • Loading branch information
shikokuchuo committed Nov 22, 2024
1 parent cfa562b commit a16ac2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/later.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ create_loop <- function(parent = current_loop(), autorun = NULL) {
# However, if the package is unloaded it can get GC'd, and we don't want the
# destroy_loop() finalizer to give an error message about not being able to
# destroy the global loop.
reg.finalizer(loop, notify_r_ref_deleted)
reg.finalizer(loop, notify_r_ref_deleted, onexit = TRUE)
}

loop
Expand Down

0 comments on commit a16ac2c

Please sign in to comment.