Skip to content

Commit ea3f185

Browse files
authored
[Samples] Fix async polling delay technique
The focus of these changes is to update the delay technique used for polling to be async-friendly.
1 parent 30db88c commit ea3f185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/VectorStore/Example01_VectorStoreCreationAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private static async Task<VectorStore> PollVectorStoreAsync(VectorStoreClient cl
6666
pollDelay = TimeSpan.FromMilliseconds(ms);
6767
}
6868

69-
Thread.Sleep(pollDelay);
69+
await Task.Delay(pollDelay);
7070
}
7171
else
7272
{

0 commit comments

Comments
 (0)