aboutsummaryrefslogtreecommitdiff
path: root/lib/Lirc/Client.rakumod
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Lirc/Client.rakumod')
-rw-r--r--lib/Lirc/Client.rakumod4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lirc/Client.rakumod b/lib/Lirc/Client.rakumod
index 0065335..f87528c 100644
--- a/lib/Lirc/Client.rakumod
+++ b/lib/Lirc/Client.rakumod
@@ -21,14 +21,14 @@ class Lirc::Client {
X::Init.new(rc => -$!fd).throw() if $!fd < 0;
}
- method !send-sync(Str :$remote, Str :$keysym) {
+ method !send-sync(Str :$remote!, Str :$keysym!) {
my $rc = lirc_send_one($!fd, $remote, $keysym);
X::Send.new().throw() if $rc != 0;
}
# copied from OO::Actors
has Lock::Async $!orderer .= new;
- method send(Str :$remote, Str :$keysym) {
+ method send(Str :$remote!, Str :$keysym!) {
$!orderer.lock.then({
LEAVE $!orderer.unlock;
self!send-sync(:$remote, :$keysym);