koapy.backend.kiwoom_open_api_plus.utils.pyside2.QRateLimitedExecutor¶
Module Contents¶
Classes¶
This is an abstract base class for concrete asynchronous executors. |
- class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QRateLimitedExecutor.QRateLimitedExecutorRunnable(future: concurrent.futures.Future, fn: Callable, args: Optional[Sequence[Any]] = None, kwargs: Optional[Dict[str, Any]] = None)[source]¶
- class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QRateLimitedExecutor.QRateLimitedExecutorDecoratedFunction(func: koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor.QSlotLikeCallable, limiter: koapy.utils.rate_limiting.RateLimiter.RateLimiter, executor: QRateLimitedExecutor)[source]¶
- class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QRateLimitedExecutor.QRateLimitedExecutor(limiter: koapy.utils.rate_limiting.RateLimiter.RateLimiter, parent: Optional[koapy.compat.pyside2.QtCore.QObject] = None)[source]¶
Bases:
koapy.utils.logging.pyside2.QThreadLogging.QThreadLogging,concurrent.futures.ExecutorThis is an abstract base class for concrete asynchronous executors.
- submit(fn: Callable, /, *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(wait: bool = True, cancel_futures: bool = 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.