Future...plBase(3pm)
π Future::IO::ImplBase β bestie edition π
ok so this is the Future::IO::ImplBase page, from the User Contributed Perl Documentation collection, manual section 3pm. Sit down, get comfy, we're doing Perl internals and it's gonna be adorable. π
β¨ NAME β¨
Future::IO::ImplBase β it's the base class for Future::IO implementations. like, the blueprint bestie, the template, the moment. π
πΈ DESCRIPTION πΈ
okay so this package hands you a couple of utility methods that can genuinely help when you're out here writing actual Future::IO implementation classes. super handy, lowkey iconic.
but hear me β it is entirely optional. implementations are not required to use it. no pressure, no cap. you do you. π¦
π CLASS METHODS π
π« APPLY
__PACKAGE__->APPLY;
so what this does is it attempts to set the value of the $Future::IO::IMPL variable to the name of the calling package. that's it. that's the whole vibe. it attempts. π
π§ DEFAULT METHODS π§
these methods are provided based on lower-level functionality that the implementing class should provide. so like, you bring the basics, this base class serves the rest. teamwork, fr fr. π«Ά
π accept
Implemented by wrapping ready_for_read, as sysread uses.
β° alarm
Implemented by wrapping sleep.
π connect
Implemented by wrapping ready_for_write, as syswrite uses.
π₯ recv
π¬ recvfrom
Implemented by wrapping ready_for_read, as sysread uses.
π€ send
Implemented by wrapping ready_for_write, as syswrite uses.
π sysread
Requires a lower-level method
$f = $class->ready_for_read( $fh );
which should return a Future that completes when the given filehandle may be ready for reading. key word: may. don't come for me. π
βοΈ syswrite
Requires a lower-level method
$f = $class->ready_for_write( $fh );
which should return a Future that completes when the given filehandle may be ready for writing. again β may. slay. π₯
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β the icon, the legend, the main character who wrote all this. π
ok that's the whole page bestie, no notes, periodt. π
this lil manual was generated for perl v5.42.0, dated 2026-01-18, and it lives in section 3pm β catch you later, mwah! πβ¨
π¦ where this page comes from
- fedora 44: perl-Future-IO 0.18-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms