koapy.backend.kiwoom_open_api_plus.utils.pyside2.QThreadPoolExecutor
¶
Module Contents¶
Classes¶
This is an abstract base class for concrete asynchronous executors. |
- class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QThreadPoolExecutor.QThreadPoolExecutorRunnable(future: concurrent.futures.Future, fn: Callable[Ellipsis, Any], args: Union[Tuple[Any], List[Any]], kwargs: Dict[str, Any])[source]¶
Bases:
koapy.compat.pyside2.QtCore.QRunnable
- class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QThreadPoolExecutor.QThreadPoolExecutor(thread_pool: koapy.compat.pyside2.QtCore.QThreadPool, parent: Optional[koapy.compat.pyside2.QtCore.QObject]) QThreadPoolExecutor(parent: Optional[koapy.compat.pyside2.QtCore.QObject])[source]¶
Bases:
koapy.compat.pyside2.QtCore.QObject
,concurrent.futures.Executor
This is an abstract base class for concrete asynchronous executors.
- submit(self, fn, *args, **kwargs)[source]¶
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.
- shutdown(self, wait=True, cancel_futures=False)[source]¶
Clean-up the resources associated with the Executor.
It is safe to call this method several times. Otherwise, no other methods can be called after this one.
- Parameters
wait – If True then shutdown will not return until all running futures have finished executing and the resources used by the executor have been reclaimed.