Package brisa :: Package utils :: Module safe_sleep
[hide private]
[frames] | no frames]

Module safe_sleep

source code

Provides a way of sleeping safely.

Functions [hide private]
 
tsleep(timeout, death_fd) source code
 
safe_sleep(t, death_fd=None)
Implementation of a simple smart sleep function.
source code
Function Details [hide private]

safe_sleep(t, death_fd=None)

source code 

Implementation of a simple smart sleep function. This function makes sure the whole sleep time is slept properly.

Parameters:
  • t (integer) - sleep time