You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
take() returns undefined when remaining is 0 without calling back up to close the iterator. I'd expect iterator to get closed when this happens. For example
function*readLines(){try{open()while(1)yieldread()}finally{close()}}// manual letcount=3for(letlineofreadLines()){// use lineif(--count===0)break;// closes}// using take()for(letlineofreadLines().take(3)){// use line}// not closed