These nested supplies cause an error, but apparently only if the internal supply is IO::Notification. It does not seem to be a problem for any other supply:
my $supply = IO::Notification.watch-path( "/var/log/syslog" );
my $parsed = supply {
$supply.tap: -> $v {
emit( { Seen => $v.event } );
CATCH {
default {
$*ERR.say: .message;
}
}
}
}
$parsed.tap( -> $v { say $v });
sleep 40;
This is the error emitted:
emit without supply or react
emit without supply or react
(when there's a event that fires the supply). I haven't been able to reproduce it in other kind of nested supplies, but this always fails. Any idea why?