Skip to content

Commit

Permalink
Replace .toReversed() with .slice().reverse()
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Jan 22, 2025
1 parent aeb2e02 commit c5e2b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/race.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function* race<T extends Operation<unknown>>(
// encapsulate the race in a hermetic scope.
let result = yield* trap(() =>
encapsulate(function* () {
for (let operation of operations.toReversed()) {
for (let operation of operations.slice().reverse()) {
tasks.push(
yield* spawn(function* () {
// let contestant = yield* useScope();
Expand Down

0 comments on commit c5e2b76

Please sign in to comment.