Skip to content

Commit 84b0ea9

Browse files
use cancellation token in driver row source (#771)
1 parent b4865fc commit 84b0ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Neo4j.Driver/Neo4j.Driver/Internal/Driver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ CancellationToken cancellationToken
156156
{
157157
async Task<int> Process(IAsyncEnumerable<IRecord> records)
158158
{
159-
await foreach (var record in records.ConfigureAwait(false))
159+
await foreach (var record in records.ConfigureAwait(false).WithCancellation(cancellationToken))
160160
{
161161
streamProcessor(record);
162162
}

0 commit comments

Comments
 (0)