koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor

Module Contents

Classes

QSlotLikeExecutorRunnable

QSlotLikeCallable

QSlotLikeExecutor

This is an abstract base class for concrete asynchronous executors.

Attributes

P

R

koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor.P[source]
koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor.R[source]
class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor.QSlotLikeExecutorRunnable(future: concurrent.futures.Future, fn: Callable[P, R], args: Optional[Sequence[Any]] = None, kwargs: Optional[Dict[str, Any]] = None)[source]

Bases: koapy.utils.logging.Logging.Logging

run()[source]
class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor.QSlotLikeCallable(fn: Callable[P, R], executor: QSlotLikeExecutor)[source]
directCall(*args: P, **kwargs: P) R[source]
queuedCall(*args: P, **kwargs: P) concurrent.futures.Future[source]
class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor.QSlotLikeExecutor(parent: Optional[koapy.compat.pyside2.QtCore.QObject] = None)[source]

Bases: koapy.compat.pyside2.QtCore.QObject, concurrent.futures.Executor

This is an abstract base class for concrete asynchronous executors.

readyRunnable[source]
onReadyRunnable(runnable: QSlotLikeExecutorRunnable)[source]
submit(fn: Callable[P, R], /, *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.

wrapCallable(fn: Callable[P, R]) QSlotLikeCallable[source]