Skip to content

Instantly share code, notes, and snippets.

@jhorman
Created March 29, 2011 02:38
Show Gist options
  • Save jhorman/891717 to your computer and use it in GitHub Desktop.
Save jhorman/891717 to your computer and use it in GitHub Desktop.
Simple non-blocking sleep in twisted.
def sleep(secs):
d = Deferred()
reactor.callLater(secs, d.callback, None)
return d
@Querela
Copy link

Querela commented Nov 24, 2019

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment