1Future::IO::ImplBase(3)User Contributed Perl DocumentatioFnuture::IO::ImplBase(3)
2
3
4
6 "Future::IO::ImplBase" - base class for "Future::IO" implementations
7
9 This package provides a few utility methods that may help writing
10 actual Future::IO implementation classes. It is entirely optional;
11 implementations are not required to use it.
12
14 APPLY
15 __PACKAGE__->APPLY
16
17 Attempts to set the value of the $Future::IO::IMPL variable to the name
18 of the calling package.
19
21 These methods are provided based on lower-level functionallity that the
22 implementing class should provide.
23
24 alarm
25 Implemented by wrapping "sleep".
26
27 sysread
28 Requires a lower-level method
29
30 $f = $class->ready_for_read( $fh )
31
32 which should return a Future that completes when the given filehandle
33 may be ready for reading.
34
35 syswrite
36 Requires a lower-level method
37
38 $f = $class->ready_for_write( $fh )
39
40 which should return a Future that completes when the given filehandle
41 may be ready for writing.
42
44 Paul Evans <leonerd@leonerd.org.uk>
45
46
47
48perl v5.34.0 2021-07-22 Future::IO::ImplBase(3)