Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Session] Code cleanup #3854

Merged
merged 15 commits into from
May 8, 2024
Merged

[Session] Code cleanup #3854

merged 15 commits into from
May 8, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented May 4, 2024

Cleanup after #3852.

Moving things around files to better split responsibilities.

Shifts some async work to be more parallel.

Also solves race conditions between SessionApi calls by adding an AbortController.

The best way to review this is probably just to browse the final directory.

Copy link

render bot commented May 4, 2024

Copy link

github-actions bot commented May 4, 2024

Old size New size Diff
6.89 MB 6.89 MB 1.82 KB (0.03%)

@gaearon gaearon force-pushed the session-cleanup branch 3 times, most recently from 9ec2994 to ef21c07 Compare May 4, 2024 13:58
@gaearon gaearon mentioned this pull request May 4, 2024
agent.session = prevSession
if (!storedAccount.deactivated) {
// Intentionally not awaited to unblock the UI:
networkRetry(1, () => agent.resumeSession(prevSession))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@gaearon gaearon force-pushed the session-cleanup branch 4 times, most recently from 0dfd8c2 to 1b17af9 Compare May 8, 2024 02:01
@gaearon gaearon force-pushed the session-cleanup branch from 1b17af9 to dc01baf Compare May 8, 2024 02:27
@gaearon gaearon merged commit 0910525 into main May 8, 2024
6 checks passed
@gaearon gaearon deleted the session-cleanup branch May 8, 2024 02:30
@gaearon gaearon mentioned this pull request May 8, 2024
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.

2 participants