Skip to content

Instantly share code, notes, and snippets.

@terminaldweller
Created December 8, 2023 13:55
Show Gist options
  • Select an option

  • Save terminaldweller/1d61a2aaca151d52665f8d7c544d3af3 to your computer and use it in GitHub Desktop.

Select an option

Save terminaldweller/1d61a2aaca151d52665f8d7c544d3af3 to your computer and use it in GitHub Desktop.
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