Open ASafaeirad opened 2 weeks ago
In the README, a code snippet uses the "stream" variable to close the stream, but it is defined as "handle". This PR renames the "handle" variable to "stream".
async function * g() { const handle = acquireStream(); // critical resource try { ... } finally { await stream.close(); // cleanup } }
In the README, a code snippet uses the "stream" variable to close the stream, but it is defined as "handle". This PR renames the "handle" variable to "stream".