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

TraversalExtensions sample notebook #192

Merged
merged 21 commits into from
Oct 19, 2022

Conversation

ElisendaGascon
Copy link
Contributor

No description provided.

@idg10 idg10 added the no_release Suppresses auto_release functionality label Oct 3, 2022
Comment on lines 25 to 29
public async Task IsEqualToOne(int x)
{
bool result = x.Equals(1);
Console.WriteLine(result);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

If you wrote this in Visual Studio, it would issue a warning because although you've declared this as async you don't seem to have used await, so this isn't really async.

I'd consider adding something like

await Task.Delay(TimeSpan.FromSeconds(0.5));

so that a) it is async, and b) it becomes reasonable clear that ForEachAsync waits for the Task returned for each item to complete before moving onto the next.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using await in all async methods now

@Lmooney25 Lmooney25 merged commit fe4006d into main Oct 19, 2022
@Lmooney25 Lmooney25 deleted the traversalextensions-sample-notebook branch October 19, 2022 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no_release Suppresses auto_release functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants