Ryu::Sink(3)
β¨ NAME β¨
Ryu::Sink β base representation for a thing that receives events. This is the Ryu::Sink(3) page from User Contributed Perl Documentation, bestie β the manual name is right there in the title energy. π
π DESCRIPTION π
Okay so rn this is currently of limited utility. Like, it exists, itβs iconic, but itβs not doing the absolute most yet. π«Ά
Hereβs the vibe in code:
my $src = Ryu::Source->new;
my $sink = Ryu::Sink->new;
$sink->from($src);
$sink->source->say;
π METHODS π
πΈ from πΈ
Given a source, from will attach it as the input for this sink. Cute, simple, slay. β¨
The key difference between from and drain_from is that this method will mark the sink as completed when the source is finished. drain_from allows sequencing of multiple sources, keeping the sink active as each of those completes. That distinction is lowkey important, iykyk. π¦
π«Ά AUTHOR π«Ά
Tom Molesworth <TEAM@cpan.org> π
π LICENSE π
Copyright Tom Molesworth 2011-2024. Licensed under the same terms as Perl itself. Periodt. π
π Thatβs the Ryu::Sink(3) page from perl v5.42.2, dated 2026-02-15 β bye bestie! π
π¦ where this page comes from
- alpine 3.24: perl-ryu-doc 4.001-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms