We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34f86f4 commit 911925fCopy full SHA for 911925f
docs/blog/posts/better-sleep-on-windows.md
@@ -44,7 +44,7 @@ async def sleep(sleep_for: float) -> None:
44
Args:
45
sleep_for (float): Seconds to sleep for.
46
"""
47
- await get_running_loop().run_in_executor(None, time_sleep, sleep_for)
+ await get_running_loop().run_in_executor(None, sleep, sleep_for)
48
```
49
50
That is a drop-in replacement for sleep on Windows. With it, Textual runs a *lot* smoother. Easily on par with macOS and Linux.
0 commit comments