Skip to content

Commit

Permalink
refactor: always returning promise on asynciterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Farenheith committed Nov 7, 2024
1 parent 191aa1b commit 9ed2876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/recipes/branch-recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getBranchedAsyncIterable<T>(
}
node = node.next;
}
return { done, value };
return Promise.resolve({ done, value });
},
};
},
Expand Down Expand Up @@ -70,7 +70,7 @@ function getBranchedIterable<T>(
}
node = node.next;
}
return { done, value };
return Promise.resolve({ done, value });
},
};
},
Expand Down

0 comments on commit 9ed2876

Please sign in to comment.