koapy.backend.kiwoom_open_api_plus.utils.pyside2.QRateLimitedExecutor

Module Contents

Classes

QRateLimitedExecutorRunnable

QRateLimitedExecutorDecoratedFunction

QRateLimitedExecutor

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]

Bases: koapy.utils.logging.Logging.Logging

run()[source]
cancel()[source]
result()[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]

Bases: koapy.utils.logging.Logging.Logging

directCall(*args, **kwargs)[source]
queuedCall(*args, **kwargs)[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.Executor

This is an abstract base class for concrete asynchronous executors.

run()[source]
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.

wrapCallable(func: Callable)[source]