panini
panini copied to clipboard
Add possibility not to use asyncio.iscoroutinefunction in middlewares, but still support sync def
Not to overuse:
if asyncio.iscoroutinefunction(callback):
return await callback(msg)
else:
return callback(msg)
Indeed it's confusing I'm thinking to deprecate sync functions