(op, *args)
| 265 | listener.reset() |
| 266 | |
| 267 | async def target(op, *args): |
| 268 | if iscoroutinefunction(op): |
| 269 | res = await op(*args) |
| 270 | else: |
| 271 | res = op(*args) |
| 272 | if isinstance(res, (AsyncCursor, AsyncCommandCursor)): |
| 273 | await res.to_list() |
| 274 | |
| 275 | for op, args in ops: |
| 276 | tasks.append( |