Skip to content

✨ Allow peformance optimizations by setting co-routine iterator#1075

Draft
cowboyd wants to merge 1 commit intov4from
mutable-coroutine-iterator
Draft

✨ Allow peformance optimizations by setting co-routine iterator#1075
cowboyd wants to merge 1 commit intov4from
mutable-coroutine-iterator

Conversation

@cowboyd
Copy link
Member

@cowboyd cowboyd commented Jan 12, 2026

Motivation

In order to perform iterator hoisting wherein all iterators are consumed within a single yield point, we need a way to modify a co-routine's iterator.

Approach

This just adds a corresponding setter for the iterator.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 12, 2026

Open in StackBlitz

npm i https://pkg.pr.new/thefrontside/effection@1075

commit: 3026087

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant