Replies: 1 comment
-
why this is useful, for comparsion this is what's required to do a read with timeout using the classic stream/callback API:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm reading the documentation for BindingPort.read() and I feel like I'm missing something fundamental. What happens if the port is valid and open but the other side never sends data? The read call never resolves? I don't see any way to specify a timeout, and unlike node's
FileHandle.createReadStream()
I don't see any way to pass an AbortSignal either.So how can I use async
read()
with the ability to give up after some time?Beta Was this translation helpful? Give feedback.
All reactions