Bases: object
Base class for asynchronous VO service requests using concurrent.futures.ThreadPoolExecutor.
Service request will be forced to run in silent mode by setting verbose=False. Warnings are controled by warnings module.
Note
Methods of the attributes can be accessed directly, with priority given to executor.
Parameters: | func : function
args, kwargs
|
---|
Attributes
executor | (concurrent.futures.ThreadPoolExecutor) Executor running the function on single thread. |
future | (concurrent.futures.Future) Asynchronous execution created by executor. |
Methods Summary
get([timeout]) | Get result, if available, then shut down thread. |
Methods Documentation
Get result, if available, then shut down thread.
Parameters: | timeout : int or float
|
---|---|
Returns: | result
|
Raises: | Exception
|