|
NAME"Future::IO::ImplBase" - base class for "Future::IO" implementationsDESCRIPTIONThis package provides a few utility methods that may help writing actual Future::IO implementation classes. It is entirely optional; implementations are not required to use it.CLASS METHODSAPPLY__PACKAGE__->APPLY Attempts to set the value of the $Future::IO::IMPL variable to the name of the calling package. DEFAULT METHODSThese methods are provided based on lower-level functionallity that the implementing class should provide.acceptImplemented by wrapping "ready_for_read", as "sysread" uses.alarmImplemented by wrapping "sleep".connectImplemented by wrapping "ready_for_write", as "syswrite" uses.sysreadRequires 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. syswriteRequires 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. AUTHORPaul Evans <leonerd@leonerd.org.uk>
Visit the GSP FreeBSD Man Page Interface. |