Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro committed Dec 21, 2024
1 parent 42015be commit 7ea662f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/docstrings_examples/DocTest.res
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ let main = async () => {
// Await the next iterator value
let {value, done} = await asyncIterator->AsyncIterator.next

Console.log2(value, Array.length(chuncks))

// Exit the while loop if the iterator says it's done
break := done

Expand Down
1 change: 1 addition & 0 deletions tests/docstrings_examples/DocTest.res.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ async function main() {
while (!$$break) {
let match = await asyncIterator.next();
let value = match.value;
console.log(value, chuncks.length);
$$break = match.done;
if (value !== undefined) {
let c = chuncks[value];
Expand Down

0 comments on commit 7ea662f

Please sign in to comment.