(
func, *args, **kwargs
)
| 45 | |
| 46 | |
| 47 | async def _async_invoke_callback( |
| 48 | func, *args, **kwargs |
| 49 | ): # used to mark the frame for the debugger |
| 50 | # Check if the function is a coroutine function |
| 51 | if inspect.iscoroutinefunction(func): |
| 52 | return await func(*args, **kwargs) # %% callback invoked %% |
| 53 | # If the function is not a coroutine, call it directly |
| 54 | return func(*args, **kwargs) # %% callback invoked %% |
| 55 | |
| 56 | |
| 57 | def _invoke_callback(func, *args, **kwargs): # used to mark the frame for the debugger |
no test coverage detected
searching dependent graphs…