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.
1 parent 7debded commit 6bad340Copy full SHA for 6bad340
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