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

chore: Migrate session methods to async await #76

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Conversation

jimmycallin
Copy link
Contributor

  • I have added automatic tests where applicable
  • The PR title is suitable as a release note
  • The PR contains a description of what has been changed
  • The description contains manual test instructions

Changes

Migrated some methods in session from promises to async await syntax for simplifying the logic.

Test

@jimmycallin jimmycallin requested a review from a team as a code owner February 13, 2023 10:43
@jimmycallin jimmycallin changed the title chore: Migrate async await chore: Migrate session methods to async await Feb 14, 2023
Copy link
Contributor

@gismya gismya left a comment

Choose a reason for hiding this comment

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

lgtm. Love the readability improvements.

source/session.ts Outdated Show resolved Hide resolved
@jimmycallin jimmycallin merged commit 4963d3f into main Mar 15, 2023
@jimmycallin jimmycallin deleted the migrate-async-await branch March 15, 2023 16:32
gismya pushed a commit that referenced this pull request May 15, 2023
* chore: Migrate session methods to async await

* fix: move response initialization to within try block
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