Skip to content

Commit dab2a22

Browse files
committed
asyncio: Remove polling sleep implementation, it belongs in async_slow.
1 parent dd80d18 commit dab2a22

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

asyncio/asyncio.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,6 @@ def async(coro):
183183
def sleep(secs):
184184
yield Sleep("sleep", secs)
185185

186-
def sleep2(secs):
187-
t = time.time()
188-
# print("Started sleep:", t, "targetting:", t + secs)
189-
while time.time() < t + secs:
190-
time.sleep(0.01)
191-
yield None
192-
# print("Finished sleeping", secs)
193-
# time.sleep(secs)
194-
195186

196187
import microsocket as _socket
197188

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy