GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CPS::FUTURE (3)

.ds Aq ’

NAME

"CPS::Future" - compatibility wrapper around Future

CONTENTS

DESCRIPTION

This module provides a compatibility wrapper around Future. The code it used to contain was renamed to move it out of the CPS distribution. Existing code that refers to CPS::Future should be changed to use Future instead.

CW$future->( CW@result )

This subclass overloads the calling operator, so simply invoking the future object itself as if it were a CODE reference is equivalent to calling the done method. This makes it simple to pass as a callback function to other code.

It turns out however, that this behaviour is too subtle and can lead to bugs when futures are accidentally used as plain CODE references. See the done_cb method instead. This overload behaviour will be removed in a later version.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CPS::FUTURE (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.