Package gluon :: Module rocket :: Class WSGIFuture
[hide private]
[frames] | no frames]

Class WSGIFuture

source code

                     object --+    
concurrent.futures._base.Future --+

Instance Methods [hide private]
__init__(self, f_dict, *args, **kwargs)
Initializes the future.
source code
Mark the future as running or process any cancel notifications.
source code
remember(self, name, lifespan=None) source code
forget(self) source code

Inherited from concurrent.futures._base.Future: __repr__, add_done_callback, cancel, cancelled, done, exception, result, running, set_exception, set_result

Inherited from concurrent.futures._base.Future (private): _invoke_callbacks

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, f_dict, *args, **kwargs)

source code 

Initializes the future. Should not be called by clients.

Overrides: object.__init__
(inherited documentation)


source code 
Mark the future as running or process any cancel notifications.

Should only be used by Executor implementations and unit tests.

If the future has been cancelled (cancel() was called and returned
True) then any threads waiting on the future completing (though calls
to as_completed() or wait()) are notified and False is returned.

If the future was not cancelled then it is put in the running state
(future calls to running() will return True) and True is returned.

This method should be called by Executor implementations before
executing the work associated with this future. If this method returns
False then the work should not be executed.

    False if the Future was cancelled, True otherwise.

    RuntimeError: if this method was already called or if set_result()
        or set_exception() was called.

Overrides: concurrent.futures._base.Future.set_running_or_notify_cancel
(inherited documentation)