closeio / sync-engine

GNU Affero General Public License v3.0
26 stars 9 forks source link

Sync: Extract ChangePoller #923

Closed squeaky-pl closed 1 month ago

squeaky-pl commented 1 month ago

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.