Created
December 8, 2023 13:55
-
-
Save terminaldweller/1d61a2aaca151d52665f8d7c544d3af3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading | |
| import time | |
| import irssi | |
| def mysleep(): | |
| time.sleep(10) | |
| print("i am non-blocking") | |
| def runner(): | |
| threading.Thread(target=mysleep).start() | |
| def test_async(a, b, c): | |
| runner() | |
| irssi.command_bind(b"pyas", test_async) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment