why using await for setting/getting sessions ? #151
Answered
by
maxcountryman
HosMercury
asked this question in
Q&A
-
although sometimes it could be simple number or non-async stuff. |
Beta Was this translation helpful? Give feedback.
Answered by
maxcountryman
Feb 1, 2024
Replies: 1 comment
-
This is necessary because sessions are lazy and therefore are not loaded until the moment they're actually used; loading a session from some arbitrary store is an asynchronous action. The motivation for this design was outlined in depth in this PR and the linked discussion therein. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HosMercury
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is necessary because sessions are lazy and therefore are not loaded until the moment they're actually used; loading a session from some arbitrary store is an asynchronous action. The motivation for this design was outlined in depth in this PR and the linked discussion therein.