Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created September 11, 2017 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfldex/7d89ad2b17746e39a0f53934c57bb6a8 to your computer and use it in GitHub Desktop.
Save gfldex/7d89ad2b17746e39a0f53934c57bb6a8 to your computer and use it in GitHub Desktop.
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