You shouldn't use inspect.isgenerator() though -- you should use
asyncio.iscoroutine(). (It's currently undocumented but we should fix
that.)
Is that "iscoroutine" brand new?
oberstet@vbox-ubuntu1310:~/scm/AutobahnPython/examples/asyncio/websocket/testee$
~/python340b1/bin/python3
Python 3.4.0b1 (default, Dec 28 2013, 15:29:21)
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> asyncio.iscoroutine
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'iscoroutine'