(self, make_current: Optional[bool] = None)
| 345 | return AsyncIOLoop |
| 346 | |
| 347 | def initialize(self, make_current: Optional[bool] = None) -> None: |
| 348 | if make_current is None: |
| 349 | if IOLoop.current(instance=False) is None: |
| 350 | self.make_current() |
| 351 | elif make_current: |
| 352 | current = IOLoop.current(instance=False) |
| 353 | # AsyncIO loops can already be current by this point. |
| 354 | if current is not None and current is not self: |
| 355 | raise RuntimeError("current IOLoop already exists") |
| 356 | self.make_current() |
| 357 | |
| 358 | def close(self, all_fds: bool = False) -> None: |
| 359 | """Closes the `IOLoop`, freeing any resources used. |
no test coverage detected