birschick-bq commented on code in PR #3397:
URL: https://github.com/apache/arrow-adbc/pull/3397#discussion_r2341998783
##########
csharp/src/Telemetry/Traces/Exporters/FileExporter/FileExporter.cs:
##########
@@ -203,13 +203,13 @@ private FileExporter(string fileBaseName, DirectoryInfo
tracesDirectory, long ma
ApacheArrowAdbcNamespace,
TracesFolderName)).FullName;
- private async Task FlushAsync(CancellationToken cancellationToken =
default)
+ private void FlushAsync(CancellationToken cancellationToken = default)
{
// Ensure existing writes are completed.
- _ = _channel.Writer.TryComplete();
+ _channel.Writer.TryComplete();
while (!cancellationToken.IsCancellationRequested &&
!_isProcessingComplete)
{
- await Task.Delay(100);
+ Thread.Sleep(100);
Review Comment:
Thanks. Changed the synchronous calls (`Flush` / `OnForceFlush`) to use
`Thread.Sleep` instead of `Task.Delay`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]