Skip to content
Browse files

Simplify stuff a bit

  • Loading branch information...
1 parent 4f35cf4 commit 762489b957203f7065f5f8d810df63f1d72ce3d7 @tadzik committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Coroutines.pm
View
3 lib/Coroutines.pm
@@ -20,8 +20,7 @@ sub yield is export {
sub schedule is export {
return unless +@coroutines;
my $r = @coroutines.shift;
- my $result = $r.shift;
- if $result ~~ CoroStatus::still_going {
+ if $r.shift ~~ CoroStatus::still_going {
@coroutines.push($r);
}
}

0 comments on commit 762489b

Please sign in to comment.
Something went wrong with that request. Please try again.