Skip to content

Commit 3c33fde

Browse files
committed
Commenting Task.Delay(5000)
1 parent 939b77a commit 3c33fde

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/azure-monitor/app/console.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ namespace ConsoleApp
169169
// before exit, flush the remaining data
170170
telemetryClient.Flush();
171171

172-
// flush is not blocking when not using InMemoryChannel so wait a bit. There is an active issue regarding the need for `Sleep`/`Delay`
173-
// which is tracked here: https://github.com/microsoft/ApplicationInsights-dotnet/issues/407
174-
Task.Delay(5000).Wait();
172+
// Flush() is synchronous when using InMemoryChannel; otherwise a short delay is required.
173+
// Task.Delay(5000).Wait();
175174
176175
}
177176

0 commit comments

Comments
 (0)