Re: int|float for sleep? sleep(0.1) => sleep 0.1 seconds

From: Date: Fri, 16 Feb 2024 13:20:08 +0000
Subject: Re: int|float for sleep? sleep(0.1) => sleep 0.1 seconds
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-122404@lists.php.net to get a copy of this message
Hi, > > FWIW Python's time.sleep also works like this: > https://docs.python.org/3/library/time.html#time.sleep Python also implements the following: > If the sleep is interrupted by a signal and no exception is raised by the signal handler, the > sleep is restarted with a recomputed timeout. > I think we should also implement that. As a consequence, sleep(...) will always return 0. If we “fix” sleep(), let’s “fix” it completely. —Claude

« previous php.internals (#122404) next »