We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f101901 + 6bad340 commit bcb9221Copy full SHA for bcb9221
binding/dart/lib/storage/schema/iterator.dart
@@ -1,3 +1,5 @@
1
+import 'dart:math';
2
+
3
import '../executor/executor.dart';
4
5
class StorageIterator {
@@ -49,6 +51,7 @@ class StorageIterator {
49
51
int count = 1,
50
52
}) async* {
53
var index = 0;
54
+ if (limit != null) count = min(count, limit);
55
if (filter == null) {
56
List<List<dynamic>>? tuples;
57
while ((tuples = await _executor.next(this, count)) != null) {
0 commit comments