note 127652 added to function.sleep

From: Date: Tue, 20 Sep 2022 08:29:48 +0000
Subject: note 127652 added to function.sleep
Groups: php.notes 
Request: Send a blank email to php-notes+get-219598@lists.php.net to get a copy of this message
From my testing calling sleep(0); will do a thread spin. It would be nice if this was to be put explicitly in the documentation as it is useful. You can do the minimum wait without overloading the CPU thread. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.173 (proxied: 82.78.175.39) ---- Manual Page -- https://php.net/manual/en/function.sleep.php Edit -- https://main.php.net/note/edit/127652 Del: integrated -- https://main.php.net/note/delete/127652/integrated Del: useless -- https://main.php.net/note/delete/127652/useless Del: bad code -- https://main.php.net/note/delete/127652/bad+code Del: spam -- https://main.php.net/note/delete/127652/spam Del: non-english -- https://main.php.net/note/delete/127652/non-english Del: in docs -- https://main.php.net/note/delete/127652/in+docs Del: other reasons-- https://main.php.net/note/delete/127652 Reject -- https://main.php.net/note/reject/127652 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219598) next »