… | |
… | |
143 | |
143 | |
144 | use AE (); |
144 | use AE (); |
145 | |
145 | |
146 | use base "Exporter"; |
146 | use base "Exporter"; |
147 | |
147 | |
148 | our $VERSION = $AnyEvent::MP::Kernel::VERSION; |
148 | our $VERSION = 1.2; |
149 | |
149 | |
150 | our @EXPORT = qw( |
150 | our @EXPORT = qw( |
151 | NODE $NODE *SELF node_of after |
151 | NODE $NODE *SELF node_of after |
152 | configure |
152 | configure |
153 | snd rcv mon mon_guard kil psub spawn cal |
153 | snd rcv mon mon_guard kil psub spawn cal |
… | |
… | |
727 | |
727 | |
728 | If an optional time-out (in seconds) is given and it is not C<undef>, |
728 | If an optional time-out (in seconds) is given and it is not C<undef>, |
729 | then the callback will be called without any arguments after the time-out |
729 | then the callback will be called without any arguments after the time-out |
730 | elapsed and the port is C<kil>ed. |
730 | elapsed and the port is C<kil>ed. |
731 | |
731 | |
732 | If no time-out is given, then the local port will monitor the remote port |
732 | If no time-out is given (or it is C<undef>), then the local port will |
733 | instead, so it eventually gets cleaned-up. |
733 | monitor the remote port instead, so it eventually gets cleaned-up. |
734 | |
734 | |
735 | Currently this function returns the temporary port, but this "feature" |
735 | Currently this function returns the temporary port, but this "feature" |
736 | might go in future versions unless you can make a convincing case that |
736 | might go in future versions unless you can make a convincing case that |
737 | this is indeed useful for something. |
737 | this is indeed useful for something. |
738 | |
738 | |