/PyTimeout

A simple timed callout function for python

Primary LanguagePythonMIT LicenseMIT

PyTimeout

A simple timed callback function for python

Use

 from PyTimeout import Timeout

 def callback(a, b, **kwargs):
    print a, b

 Timeout(2, callback, "Hello", "World")

Requirements

  gevent
  python 2.7