Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Add possibility not to use asyncio.iscoroutinefunction in middlewares, but still support sync def #197

Description

@danylott

Not to overuse:

if asyncio.iscoroutinefunction(callback):
  return await callback(msg)
else:
  return callback(msg)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions