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

Class WSGIExecutor

source code

                              object --+        
                                       |        
       concurrent.futures._base.Executor --+    
                                           |    
concurrent.futures.thread.ThreadPoolExecutor --+
                                               |
                                              WSGIExecutor

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Initializes a new ThreadPoolExecutor instance.
source code
 
submit(self, fn, *args, **kwargs)
Submits a callable to be executed with the given arguments.
source code

Inherited from concurrent.futures.thread.ThreadPoolExecutor: shutdown

Inherited from concurrent.futures.thread.ThreadPoolExecutor (private): _adjust_thread_count

Inherited from concurrent.futures._base.Executor: __enter__, __exit__, map

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

Class Variables [hide private]
  multithread = True
  multiprocess = False
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Initializes a new ThreadPoolExecutor instance.

Args:
    max_workers: The maximum number of threads that can be used to
        execute the given calls.

Overrides: object.__init__
(inherited documentation)

submit(self, fn, *args, **kwargs)

source code 
Submits a callable to be executed with the given arguments.

Schedules the callable to be executed as fn(*args, **kwargs) and returns
a Future instance representing the execution of the callable.

Returns:
    A Future representing the given call.

Overrides: concurrent.futures._base.Executor.submit
(inherited documentation)