utils

decorators:

Module holds different decorators, which can be used within the pipeLionServer

pipeLionServer.utils.decorators.timeout(timeout_time, *args, **kwargs)[source]

this decorator will return a PipeLionServerTimeoutException if the call of the decorated method takes longer as the given time.

Parameters:timeout_time (int) – seconds to timeout
Returns:returnValue of the decorated method or PipeLionServerTimeoutException if the call takes longer than the given time
Return type:PipeLionServerTimeoutException or variant

Table Of Contents

Previous topic

services

This Page