(func, *args, **kwargs)
| 216 | |
| 217 | |
| 218 | async def execute_async_function(func, *args, **kwargs): |
| 219 | # Check if the function is a coroutine function |
| 220 | if inspect.iscoroutinefunction(func): |
| 221 | return await func(*args, **kwargs) |
| 222 | # If the function is not a coroutine, call it directly |
| 223 | return func(*args, **kwargs) |
| 224 | |
| 225 | |
| 226 | # pylint: disable=too-many-instance-attributes |
no test coverage detected
searching dependent graphs…