Skip to content

Commit

Permalink
send mirai cancellation on interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jan 23, 2025
1 parent 1fa33c2 commit 0e08a8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/map.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ mmap_ <- function(.x, .f, .args, .parallel, .progress, .type, error_call) {
call = error_call,
class = "purrr_error_indexed"
)
},
interrupt = function(cnd) {
mirai::stop_mirai(m)

Check warning on line 234 in R/map.R

View check run for this annotation

Codecov / codecov/patch

R/map.R#L234

Added line #L234 was not covered by tests
}
)
if (.type != "list") {
Expand Down

0 comments on commit 0e08a8d

Please sign in to comment.