friends-of-freeswitch / switchio

asyncio powered FreeSWITCH cluster control
http://switchio.rtfd.io
Mozilla Public License 2.0
191 stars 28 forks source link

Coroutine support! #28

Closed goodboy closed 6 years ago

goodboy commented 6 years ago

This adds initial support for coroutine based apps.

I've dropped callback support for now (debatable whether we should keep it) and this is demonstrated in a couple apps, namely the CDR app and a simple bridger in the test suite.

Looking for harsh criticism of both the design and API ;)

Thanks guys!

goodboy commented 6 years ago

Tests are currently failing due to some apps still using callbacks and a failed speed test likely because uvloop isn't required by default.

Maybe it should be to keep current perf expectations with coroutine support?

goodboy commented 6 years ago

@vodik @moises-silva there that keeps in py2 support for the first release and adds back the callback API.

I think that should be it unless you guys have further suggestions.