Repository navigation
quic: drop promise arg for sendDatagram - #67931
Open
martenrichter wants to merge 1 commit into
Open
martenrichter wants to merge 1 commit into
martenrichter wants to merge 1 commit into
Conversation
Collaborator
|
Review requested:
|
This drops the promise type for the datagram in sendDatagram. This allows sendDatagram to become sync. Fixes: nodejs#67871 Signed-off-by: Marten Richter <marten.richter@freenet.de>
martenrichter
force-pushed
the
droppromsenddatagram
branch
from
December 1, 2026 07:32
d42f61e to
55b6a21
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67931 +/- ##
==========================================
+ Coverage 90.52% 90.59% +0.06%
==========================================
Files 805 802 -3
Lines 285842 286646 +804
Branches 55192 55377 +185
==========================================
+ Hits 258771 259683 +912
+ Misses 17165 17078 -87
+ Partials 9906 9885 -21
🚀 New features to boost your workflow:
|
Collaborator
pimterry
reviewed
Dec 1, 2026
pimterry
left a comment
Member
There was a problem hiding this comment.
Small point on the docs, all the rest LGTM
| * | ||
| * If a Promise is given, it will be awaited before sending. If the | ||
| * session closes while awaiting, 0n is returned silently. | ||
| * @param {ArrayBufferView|string|Promise} datagram The datagram payload |
Member
There was a problem hiding this comment.
Both here and in quic.md we still have Promise in the param type, we should update both of these too.
efekrskl
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This drops the promise type for the datagram in
sendDatagram. This allows sendDatagram to become
sync.
Fixes: #67871