Most parts of the sync are stateful objects inheriting from greenlet base class. To remove gevent specific APIs and make the whole thing thread compatible it's easier to convert this to a subclass of greenlet as well. Threads support subclassing and have a start() method like greenlets. kill() method does not exist for threads but can be polyfilled later.
Most parts of the sync are stateful objects inheriting from greenlet base class. To remove gevent specific APIs and make the whole thing thread compatible it's easier to convert this to a subclass of greenlet as well. Threads support subclassing and have a
start()
method like greenlets.kill()
method does not exist for threads but can be polyfilled later.