IO::Async::Future man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

IO::Async::Future(3)  User Contributed Perl Documentation IO::Async::Future(3)

NAME
       "IO::Async::Future" - use Future with IO::Async

SYNOPSIS
	use IO::Async::Loop;

	my $loop = IO::Async::Loop->new;

	my $future = $loop->new_future;

	$loop->watch_time( after => 3, code => sub { $future->done( "Done" ) } );

	print $future->get, "\n";

DESCRIPTION
       This subclass of Future stores a reference to the IO::Async::Loop
       instance that created it, allowing the "await" method to block until
       the Future is ready. These objects should not be constructed directly;
       instead the "new_future" method on the containing Loop should be used.

       For a full description on how to use Futures, see the Future
       documentation.

CONSTRUCTORS
       New "IO::Async::Future" objects should be constructed by using the
       following methods on the "Loop". For more detail see the
       IO::Async::Loop documentation.

   $future = $loop->new_future
       Returns a new pending Future.

   $future = $loop->delay_future( %args )
       Returns a new Future that will become done at a given time.

   $future = $loop->timeout_future( %args )
       Returns a new Future that will become failed at a given time.

METHODS
   $loop = $future->loop
       Returns the underlying "IO::Async::Loop" object.

AUTHOR
       Paul Evans <leonerd@leonerd.org.uk>

perl v5.18.2			  2014-05-14		  IO::Async::Future(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net