Skip to content

Commit

Permalink
Add is_session_closed method
Browse files Browse the repository at this point in the history
  • Loading branch information
ekouts committed Apr 3, 2024
1 parent 921f87d commit 727f6a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firecrest/AsyncClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ async def create_new_session(self) -> None:

self._session = httpx.AsyncClient()

@property
def is_session_closed(self) -> bool:
"""Check if the httpx session is closed"""
return self._session.is_closed

@_retry_requests # type: ignore
async def _get_request(
self, endpoint, additional_headers=None, params=None
Expand Down

0 comments on commit 727f6a9

Please sign in to comment.