Documentation
/ class Tap
class Tap
Subscription to a Supply
class Tap {}
A Tap is a subscription to a Supply .
my $s = Supplier.new;
my $tap = $s.Supply.on-close({ say "Tap closed" }).tap(
-> $v { say "the value is $v" },
done => { say "Supply is done" },
quit => -> $ex { say "Supply finished with error $ex" },
);
# later
$tap.close;
Methods
method close
method close(Tap:D:)
Closes the tap.
See Also class Channel
Thread-safe queue for sending values from producers to consumers
class IO::Spec
Platform specific operations on file and directory paths
class Lock
A low-level, re-entrant, mutual exclusion lock
class Proc
Running process (filehandle-based interface)
class Supply
Asynchronous data stream with multiple subscribers
class VM
Raku Virtual Machine related information
š¦ / Documentation
/ class Tap
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.