File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ var Aff = function () {
169
169
} ,
170
170
killAll : function ( killError , cb ) {
171
171
return function ( ) {
172
+ if ( count === 0 ) {
173
+ return cb ( ) ;
174
+ }
175
+
172
176
var killCount = 0 ;
173
177
var kills = { } ;
174
178
Original file line number Diff line number Diff line change @@ -667,6 +667,14 @@ test_regression_kill_sync_async = assert "regression/kill-sync-async" do
667
667
killFiber (error " Nope." ) f1
668
668
pure true
669
669
670
+ test_regression_kill_empty_supervisor ∷ Aff Unit
671
+ test_regression_kill_empty_supervisor = assert " regression/kill-empty-supervisor" do
672
+ f1 ← forkAff $ supervise $ delay $ Milliseconds 10.0
673
+ let
674
+ a = parallel $ killFiber (error " Nope." ) f1 $> true
675
+ b = parallel $ delay (Milliseconds 20.0 ) $> false
676
+ sequential (a <|> b)
677
+
670
678
main ∷ Effect Unit
671
679
main = do
672
680
test_pure
@@ -715,3 +723,4 @@ main = do
715
723
test_regression_par_apply_async_canceler
716
724
test_regression_bracket_catch_cleanup
717
725
test_regression_kill_sync_async
726
+ test_regression_kill_empty_supervisor
You can’t perform that action at this time.
0 commit comments