POE::Component::NonBlockingWrapper::Base

POE::Component::NonBlockingWrapper::Base is a POE-based base Perl class for non-blocking wrappers around blocking stuff.
Download

POE::Component::NonBlockingWrapper::Base Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Zoffix Znet
  • Publisher web site:
  • http://search.cpan.org/~zoffix/

POE::Component::NonBlockingWrapper::Base Tags


POE::Component::NonBlockingWrapper::Base Description

POE::Component::NonBlockingWrapper::Base is a POE-based base Perl class for non-blocking wrappers around blocking stuff. POE::Component::NonBlockingWrapper::Base is a POE-based base Perl class for non-blocking wrappers around blocking stuff.SYNOPSIS use strict; use warnings; package POE::Component::Example; use POE; use base 'POE::Component::NonBlockingWrapper::Base'; sub _methods_define { return ( get_time => '_wheel_entry' ); } sub get_time { $poe_kernel->post( shift->{session_id} => get_time => @_ ); } sub _process_request { # of course, here you'd normally do your blocking stuff $_->{time} = localtime; } package main; use POE; my $poco = POE::Component::Example->spawn; POE::Session->create( package_states => ], ); $poe_kernel->run; sub _start { $poco->get_time({ event => 'results' }); } sub results { print "Current time is: $_->{time}n"; $poco->shutdown; } Requirements: · Perl


POE::Component::NonBlockingWrapper::Base Related Software