Last active
December 15, 2017 13:21
-
-
Save lizmat/431807927c755c4eefca2ecf50395dd8 to your computer and use it in GitHub Desktop.
possible fix for araraloren
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub follow(IO::Handle $fh --> Supply) { | |
$fh.seek(0, SeekFromEnd); | |
$fh does role { | |
method get() { | |
sleep .1 while $fh.eof; | |
$fh.IO::Handle::get | |
} | |
} | |
supply { | |
whenever $fh.lines { | |
.emit; | |
QUIT { note "QUIT ", &?ROUTINE; } | |
LAST { note "LAST ", &?ROUTINE; } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment