File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11Package: future
2- Version: 1.68.0-9101
2+ Version: 1.68.0-9102
33Title: Unified Parallel and Distributed Processing in R for Everyone
44Depends:
55 R (>= 3.2.0)
Original file line number Diff line number Diff line change @@ -1018,6 +1018,20 @@ getExpression.Future <- local({
10181018 }
10191019 }
10201020 }
1021+
1022+ # # FIXME: Automatically remap 'interrupted' and 'canceled' to 'finished'
1023+ # # Could also set 'actions' to 'cancel' and 'interrupt' accordingly,
1024+ # # if not already done
1025+
1026+ # # Validate that 'actions' field is consistent with legacy 'state' values
1027+ if (is.element(value , c(" canceled" , " interrupted" ))) {
1028+ actions <- future [[" actions" ]]
1029+ if (value == " interrupted" ) {
1030+ stop_if_not(" interrupt" %in% actions )
1031+ } else if (value == " canceled" ) {
1032+ stop_if_not(" cancel" %in% actions )
1033+ }
1034+ }
10211035 }
10221036
10231037 NextMethod()
You can’t perform that action at this time.
0 commit comments