Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coding best practices:
async
vsawait
improvements #2156New 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
Coding best practices:
async
vsawait
improvements #2156Changes from all commits
123c6e8
07c024c
cc37929
d5bc104
9b9ec8c
fae4354
877814c
4c06622
f095153
2031123
551d1b7
ebd5dcb
d82f37a
e708509
4f1ddd1
59bd034
2abdbbf
11c1459
9bd1214
59c3551
63fc393
61d5436
056831f
9a6eab8
1cc02f1
cb21556
8343c38
687a250
9629a94
b6c3d82
a38f733
0c1b38b
6896aaf
a9659ed
480ba72
3655677
b11b8ee
a851098
5ea8c89
efd5a31
16e495f
8061814
5c03c96
943d9bb
93331c7
cc4a920
8b10792
6ff1011
5376507
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are within a
lock
statement, we must adhere to writing only synchronous code. I agree with the change, however...@ggnaegi, what would occur if we eliminate the
lock
? Due to the need for precise time capturing, we must prevent other threads from executing because the method modifies the class member_lastUpdateTime
on line 59. It appears it's not feasible to convert this method into truly asynchronous, correct?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an issue!.. We will tackle the issue of
lock
statements versus synchronous task calls in the future.