(self)
| 17 | self.is_async = is_async_callable(func) |
| 18 | |
| 19 | async def __call__(self) -> None: |
| 20 | if self.is_async: |
| 21 | await self.func(*self.args, **self.kwargs) |
| 22 | else: |
| 23 | await run_in_threadpool(self.func, *self.args, **self.kwargs) |
| 24 | |
| 25 | |
| 26 | class BackgroundTasks(BackgroundTask): |
nothing calls this directly
no test coverage detected