Created
September 11, 2017 20:00
-
-
Save gfldex/7d89ad2b17746e39a0f53934c57bb6a8 to your computer and use it in GitHub Desktop.
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
use v6.c; | |
# `mkfifo radio-fifo-in` | |
# `echo "foo" > radio-fifo-in` | |
my $commands = supply { | |
ENTER my $fifo-in = open „radio-fifo-in“; | |
CLOSE $fifo-in.close; | |
$fifo-in.lines.emit; | |
} | |
react { | |
whenever $commands { | |
say .Str; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment