Ryu::Sink(3)

πŸ“¦ version 4.001, in alpine 3.24

✨ 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