Skip to content

fix: run credential refresh in thread#508

Merged
enocom merged 1 commit into
mainfrom
push-rkltlpmpmwwp
Dec 18, 2025
Merged

fix: run credential refresh in thread#508
enocom merged 1 commit into
mainfrom
push-rkltlpmpmwwp

Conversation

@enocom

@enocom enocom commented Dec 17, 2025

Copy link
Copy Markdown
Member

The async connector must sometimes refresh its credentials, but prior to this commit the refresh operation would block the main thread.

Now that this library supports at minimum Python 3.10, we may use the asyncio.to_thread method to run the refresh on a separate thread, awaiting its result before continuing with the connection info refresh operation.

Fixes #245

The async connector must sometimes refresh its credentials, but prior to this
commit the refresh operation would block the main thread.

Now that this library supports at minimum Python 3.10, we may use the
asyncio.to_thread method to run the refresh on a separate thread, awaiting its
result before continuing with the connection info refresh operation.

Fixes #245
@enocom enocom requested a review from a team as a code owner December 17, 2025 20:35
@enocom enocom merged commit 8f7bae7 into main Dec 18, 2025
15 checks passed
@enocom enocom deleted the push-rkltlpmpmwwp branch December 18, 2025 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Token refresh uses blocking I/O in async function

2 participants