1Future::IO::ImplBase(3)User Contributed Perl DocumentatioFnuture::IO::ImplBase(3)
2
3
4

NAME

6       "Future::IO::ImplBase" - base class for "Future::IO" implementations
7

DESCRIPTION

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

CLASS METHODS

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

DEFAULT METHODS

21       These methods are provided based on lower-level functionallity that the
22       implementing class should provide.
23
24   accept
25       Implemented by wrapping "ready_for_read", as "sysread" uses.
26
27   alarm
28       Implemented by wrapping "sleep".
29
30   connect
31       Implemented by wrapping "ready_for_write", as "syswrite" uses.
32
33   sysread
34       Requires a lower-level method
35
36          $f = $class->ready_for_read( $fh )
37
38       which should return a Future that completes when the given filehandle
39       may be ready for reading.
40
41   syswrite
42       Requires a lower-level method
43
44          $f = $class->ready_for_write( $fh )
45
46       which should return a Future that completes when the given filehandle
47       may be ready for writing.
48

AUTHOR

50       Paul Evans <leonerd@leonerd.org.uk>
51
52
53
54perl v5.36.0                      2022-07-22           Future::IO::ImplBase(3)
Impressum