minos.networks.decorators.callables.checkers

Classes

CheckerMeta

Checker Meta class.

CheckerWrapper

Checker Wrapper class.

class CheckerWrapper[source]

Bases: Protocol

Checker Wrapper class.

meta: minos.networks.decorators.callables.checkers.CheckerMeta
__init__(*args, **kwargs)
class CheckerMeta[source]

Bases: object

Checker Meta class.

__init__(func, max_attempts, delay)[source]
Parameters
func: collections.abc.Callable[[minos.networks.requests.abc.Request], Union[bool, None, collections.abc.Awaitable[Optional[bool]]]]
max_attempts: int
delay: float
async static run_async(metas, *args, **kwargs)[source]

Run a set of checkers asynchronously.

Parameters
Returns

This method does not return anything.

Return type

None

static run_sync(metas, *args, **kwargs)[source]

Run a set of checkers synchronously.

Parameters
Returns

This method does not return anything.

Return type

bool

property wrapper: minos.networks.decorators.callables.checkers.CheckerWrapper

Get the HandlerWrapper instance.

Returns

A HandlerWrapper instance.

async_wrapper

Get the async HandlerWrapper instance.

Returns

A HandlerWrapper instance.

sync_wrapper

Get the sync HandlerWrapper instance.

Returns

A HandlerWrapper instance.