Return the event loop the Future is bound to.
(self)
| 130 | return frozenset(self.__asyncio_awaited_by) |
| 131 | |
| 132 | def get_loop(self): |
| 133 | """Return the event loop the Future is bound to.""" |
| 134 | loop = self._loop |
| 135 | if loop is None: |
| 136 | raise RuntimeError("Future object is not initialized.") |
| 137 | return loop |
| 138 | |
| 139 | def _make_cancelled_error(self): |
| 140 | """Create the CancelledError to raise if the Future is cancelled. |