-
From documentation ( https://revolt.run/fundamentals ):
I test this, $readableId and $id in anonymous callback is are the same. Please explain why they need to be closed both in the middle of the callback and in the main thread, although the fiber ID is the same both there and there... Sorry for my bad English, I from Ukraine |
Beta Was this translation helpful? Give feedback.
Answered by
kelunik
Apr 4, 2024
Replies: 1 comment 1 reply
-
There are two such calls, because the one inside the callback cancels further invocations after the first invocation. The other one cancels the readability callback in case the timeout is reached. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vovkapoc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are two such calls, because the one inside the callback cancels further invocations after the first invocation. The other one cancels the readability callback in case the timeout is reached.