Sleep

class Sleep(sleep_time: float)[source]

Bases: BaseInstruction

Pause execution for a fixed amount of time.

property id: int

Return the unique instruction identifier.

Returns:

Instruction identifier.

Return type:

int

perform(*args, **kwargs)[source]

Execute the instruction.

Parameters:
  • args – Positional arguments required during execution.

  • kwargs – Keyword arguments required during execution.