Call send asynchronously from RTCDataChannel.
The underlying data channel always returns true on sending, asynchronously invoking a callback to notify that the message was sent, so there's no reason not to call it asynchronously at the blink level. This will make the main thread more responsive. Bug: webrtc:11547 Change-Id: I8a8fd518bf25d14242561501a3b05c614be0a3db Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2255317 Commit-Queue: Tommi <tommi@chromium.org> Reviewed-by:Harald Alvestrand <hta@chromium.org> Reviewed-by:
Tommi <tommi@chromium.org> Cr-Commit-Position: refs/heads/master@{#782015}
Showing
Please register or sign in to comment