* fix: mark stream as ended
refactor: prefer destroying the stream
* refactor: callback for nextTick
test: wait duration ms to check end
chore: eslint
test: end before timeout
---------
Co-authored-by: Almeida <github@almeidx.dev>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>