# tensorplay.distributed.elastic.timer.expires Source: https://www.tensorplay.cn/docs/generated/tensorplay.distributed.elastic.timer.expires.html ```python tensorplay.distributed.elastic.timer.expires(after: float, scope: str | None = None, client: TimerClient | None = None) ``` Context manager asserting the block finishes within after seconds. Registers the deadline with client (default: the configured client) and cancels it on clean exit. If the deadline lapses, the server side reacts (typically by raising SignalException in the worker).