diff options
author | dakkar <dakkar@thenautilus.net> | 2021-12-30 11:24:52 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2021-12-30 11:24:52 +0000 |
commit | bd23f27f363f7c30d7db57010810b87f97891a5f (patch) | |
tree | e240ebc94f55b4b6167e3935d0484fe996b72a54 /lib/Lirc/Client.rakumod | |
parent | play from media list (diff) | |
download | media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.tar.gz media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.tar.bz2 media-control-bd23f27f363f7c30d7db57010810b87f97891a5f.zip |
mark all required parameters as such
Diffstat (limited to 'lib/Lirc/Client.rakumod')
-rw-r--r-- | lib/Lirc/Client.rakumod | 4 |
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); |