friends-of-freeswitch / switchio

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

Thread safety check in Future.add_done_callback()? #7

Open goodboy opened 6 years ago

goodboy commented 6 years ago

As per discussion with @vodik in friends-of-freeswitch/switchy#4, there seems to be a weird requirement when calling BaseEventLoop.call_soon() (called from Future.add_done_callback()) which has a thread id check only in debug mode.

Not sure if it's actually necessary and if we should patch the stdlib? I added a FIXME as a reminder.