How to use the pyee._compat.CompatEventEmitter function in pyee

To help you get started, we’ve selected a few pyee examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jfhbrook / pyee / pyee / _compat.py View on Github external
def __init__(self, scheduler=ensure_future, loop=None):
        warn(DeprecationWarning(
            'pyee.EventEmitter is deprecated and will be removed in a future '
            'major version; you should instead use either '
            'pyee.AsyncIOEventEmitter, pyee.TwistedEventEmitter, '
            'pyee.ExecutorEventEmitter, pyee.TrioEventEmitter, '
            'or pyee.BaseEventEmitter.'
        ))

        super(CompatEventEmitter, self).__init__()

        self._schedule = scheduler
        self._loop = loop