CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 23:54:34 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neo4j/neo4j-javascript-driver.git
etag: W/"2084a9a4a7e99bb7f701e0640bd149bf"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=hUNLxfW7wj45RByre%2FWNegKaiF7yH8a4YaKTdg%2FyVItF5GcX2KUoANAE%2BvEr%2FS6zRXrKz9BXQY%2F0qSgWshESfh4csodIWEtFdNpc9UBaH%2BLWAHXVq%2F1lghX53nijmU97N4VHqptBA2sZYwEo0%2B7Bg09%2BJZeeNO5y7qwViCsbgXarmxJE6vGNjdBAQZxcczVKdIxK%2FQvvFmx%2B58AkiX74bmGizxuQb22vay1aMwh9XsLM3TlWg1JE4qFLwKvQrzop4XyFnb6loxq4hdAPc9lRnA%3D%3D--7%2F5LerwEnhE3Rh2z--HGHzfJpP1D9MhSWL5n%2FmOQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1742061871.1753228473; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:54:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:54:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8454:394F4C:1D3F71:2892B1:688024B9
AsyncIterator API for Result consumption (#831) · neo4j/neo4j-javascript-driver@5b4f475 · GitHub
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v1.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v3.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x0.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x4.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/stream-observers.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v1.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v2.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v3.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v4x0.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v4x1.test.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit 5b4f475
authored
AsyncIterator API for Result consumption (#831)
The current driver implementation has only two options for record consumption, the default async/promise api and the reactive api.
In the async side, there is no simple way to interact over the results before consuming all the data stream and back-pressure the consumption. Meanwhile in the reactive, the back-pressure is implemented but this api usage depends on the knowledge of reactive programming and `RxJS`. Another issue with our current reactive implementation is not having the way to configure the back-pressure or pause the stream consumption.
The introduction of the Async Iterator is part of a group of improvements to make the driver more idiomatic and memory efficient.1 parent a4efaff commit 5b4f475Copy full SHA for 5b4f475
File tree
Expand file treeCollapse file tree
35 files changed
+1956
-363
lines changedFilter options
- packages
- bolt-connection
- src/bolt
- test/bolt
- core
- src
- internal
- test
- utils
- neo4j-driver
- test
- testkit-backend
- src
- controller
- skipped-tests
Expand file treeCollapse file tree
35 files changed
+1956
-363
lines changedpackages/bolt-connection/src/bolt/bolt-protocol-v1.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v1.js+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
281 |
| - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
282 | 284 |
| |
283 | 285 |
| |
284 | 286 |
| |
| |||
288 | 290 |
| |
289 | 291 |
| |
290 | 292 |
| |
291 |
| - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
292 | 296 |
| |
293 | 297 |
| |
294 | 298 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v3.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v3.js+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
167 | 169 |
| |
168 | 170 |
| |
169 | 171 |
| |
| |||
173 | 175 |
| |
174 | 176 |
| |
175 | 177 |
| |
176 |
| - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
177 | 181 |
| |
178 | 182 |
| |
179 | 183 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v4x0.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x0.js+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 |
| |
95 | 97 |
| |
96 | 98 |
| |
| |||
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
107 |
| - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
108 | 112 |
| |
109 | 113 |
| |
110 | 114 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v4x4.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x4.js+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
88 | 90 |
| |
89 | 91 |
| |
90 | 92 |
| |
| |||
98 | 100 |
| |
99 | 101 |
| |
100 | 102 |
| |
101 |
| - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 |
| |
103 | 107 |
| |
104 | 108 |
| |
|
packages/bolt-connection/src/bolt/stream-observers.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/stream-observers.js+50-21Lines changed: 50 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 |
| |
73 | 75 |
| |
74 | 76 |
| |
| |||
94 | 96 |
| |
95 | 97 |
| |
96 | 98 |
| |
| 99 | + | |
| 100 | + | |
97 | 101 |
| |
98 |
| - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
99 | 125 |
| |
100 | 126 |
| |
101 | 127 |
| |
| |||
342 | 368 |
| |
343 | 369 |
| |
344 | 370 |
| |
345 |
| - | |
346 |
| - | |
347 |
| - | |
348 |
| - | |
349 |
| - | |
350 |
| - | |
| 371 | + | |
| 372 | + | |
351 | 373 |
| |
352 | 374 |
| |
353 | 375 |
| |
354 | 376 |
| |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
355 | 386 |
| |
356 | 387 |
| |
357 | 388 |
| |
| |||
367 | 398 |
| |
368 | 399 |
| |
369 | 400 |
| |
370 |
| - | |
| 401 | + | |
371 | 402 |
| |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 |
| - | |
377 |
| - | |
378 |
| - | |
379 | 403 |
| |
380 | 404 |
| |
381 | 405 |
| |
| |||
575 | 599 |
| |
576 | 600 |
| |
577 | 601 |
| |
578 |
| - | |
| 602 | + | |
| 603 | + | |
579 | 604 |
| |
580 | 605 |
| |
581 | 606 |
| |
| |||
590 | 615 |
| |
591 | 616 |
| |
592 | 617 |
| |
593 |
| - | |
| 618 | + | |
| 619 | + | |
594 | 620 |
| |
595 | 621 |
| |
596 | 622 |
| |
| |||
605 | 631 |
| |
606 | 632 |
| |
607 | 633 |
| |
608 |
| - | |
| 634 | + | |
| 635 | + | |
609 | 636 |
| |
610 | 637 |
| |
611 | 638 |
| |
612 | 639 |
| |
613 | 640 |
| |
614 | 641 |
| |
615 | 642 |
| |
616 |
| - | |
| 643 | + | |
| 644 | + | |
617 | 645 |
| |
618 | 646 |
| |
619 | 647 |
| |
620 | 648 |
| |
621 |
| - | |
| 649 | + | |
| 650 | + | |
622 | 651 |
| |
623 | 652 |
| |
624 | 653 |
| |
|
packages/bolt-connection/test/bolt/bolt-protocol-v1.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v1.test.js+22Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
338 | 338 |
| |
339 | 339 |
| |
340 | 340 |
| |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
341 | 363 |
|
packages/bolt-connection/test/bolt/bolt-protocol-v2.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v2.test.js+19Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
95 | 114 |
|
packages/bolt-connection/test/bolt/bolt-protocol-v3.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v3.test.js+21Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
295 | 295 |
| |
296 | 296 |
| |
297 | 297 |
| |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
298 | 319 |
| |
299 | 320 |
| |
300 | 321 |
| |
|
packages/bolt-connection/test/bolt/bolt-protocol-v4x0.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v4x0.test.js+21Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
217 | 238 |
| |
218 | 239 |
| |
219 | 240 |
| |
|
packages/bolt-connection/test/bolt/bolt-protocol-v4x1.test.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/bolt-protocol-v4x1.test.js+27Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 |
| |
23 | 29 |
| |
24 | 30 |
| |
| |||
82 | 88 |
| |
83 | 89 |
| |
84 | 90 |
| |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
85 | 112 |
|
You can’t perform that action at this time.
0 commit comments