philh_myftp_biz.process.Thread

Module Contents

Classes

Thread

MProcess

Sleeper

Call a function before exiting after main thread has ended

Watcher

Looper

ThreadedFunc

Functions

Alive

Check if the main thread is running

API

class philh_myftp_biz.process.Thread.Thread(func: Callable[..., T], *args: str, **kwargs: str)

Initialization

result: philh_myftp_biz.process.Thread.Thread.T = None
property _Builder
read(timeout: int, default: T = None) T
class philh_myftp_biz.process.Thread.MProcess(func: Callable[..., T], *args: str, **kwargs: str)

Bases: philh_myftp_biz.process.Thread.Thread[philh_myftp_biz.process.Thread.MProcess.T]

Initialization

property _Builder
class philh_myftp_biz.process.Thread.Sleeper(func: Callable, *args: str, **kwargs: str)

Bases: philh_myftp_biz.process.Thread.Thread[None]

Call a function before exiting after main thread has ended

Initialization

_main() None
class philh_myftp_biz.process.Thread.Watcher(checker: Callable[[], T], handler: Callable[[T], None], interval: float = 0.3)

Bases: philh_myftp_biz.process.Thread.Thread

Initialization

_main() None
class philh_myftp_biz.process.Thread.Looper(func: Callable[[], None], interval: float = 0.3)

Bases: philh_myftp_biz.process.Thread.Watcher

Initialization

philh_myftp_biz.process.Thread.Alive() bool

Check if the main thread is running

class philh_myftp_biz.process.Thread.ThreadedFunc
func: Callable[..., philh_myftp_biz.process.Thread.ThreadedFunc.R] = None
instance: Any = None
__get__(instance, _) ThreadedFunc[R]
__call__(*args, **kwargs) philh_myftp_biz.process.Thread.Thread[R]