koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor¶
Module Contents¶
Classes¶
This is an abstract base class for concrete asynchronous executors. |
Attributes¶
- 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]¶
- class koapy.backend.kiwoom_open_api_plus.utils.pyside2.QSlotLikeExecutor.QSlotLikeCallable(fn: Callable[P, R], executor: QSlotLikeExecutor)[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.ExecutorThis is an abstract base class for concrete asynchronous executors.
- 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]¶