pyCBD.realtime.threadingPython module

class pyCBD.realtime.threadingPython.ThreadingPython[source]

Bases: object

Simple Python threads subsystem

wait(time, func)[source]

Wait for the specified time before executing func.

Parameters
  • time (float) – Time to wait.

  • func (callable) – The function to call.

run(delay, func)[source]

Function to call on a seperate thread: will block for the specified time and call the function afterwards.

Parameters
  • delay (float) – The wait delay.

  • func – The function to call. No arguments can be used and no return values are needed.