Closed xixixao closed 4 years ago
FYI this will likely be unaddressed for a while:
readLine
will likely be temporarily removed - along with all others that are built on libc functions with no FD-based equivalentso on doesn't really fit with async that well
To clarify a bit, this isn't hack-specific: this is true whenever O_NONBLOCK is set, regardless of the programming language used.
This is an issue here as HSL IO aims to be async-first, so O_NONBLOCK is /always/ set.
Fixed by that PR
For:
It would be nice to support an option (or better expose a separate method) that doesn't include the newline character(s) in the return value.
Alternatively we could provide a more generic way of removing one trailing newline, with correct cross-platform behavior.