You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if aio_iscoroutine(func) or aio_iscoroutinefunction(func):
raiseTypeError("coroutines cannot be used with run_in_executor()")
should be moved such that if executor is an instance of cc_ThreadPoolExecutor it raise TypeError("coroutines cannot be used with run_in_executor()") there. That will allow one to preserve safety for cc_ThreadPoolExecutor while allowing custom Executors to handle their support (or lack of) for coroutines.