mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
fix: DatagramConn.send should return bytes sent (#6265)
This commit is contained in:
parent
f6fa659384
commit
77545219a6
5 changed files with 20 additions and 15 deletions
2
cli/js/lib.deno.unstable.d.ts
vendored
2
cli/js/lib.deno.unstable.d.ts
vendored
|
@ -988,7 +988,7 @@ declare namespace Deno {
|
|||
/** UNSTABLE: new API, yet to be vetted.
|
||||
*
|
||||
* Sends a message to the target. */
|
||||
send(p: Uint8Array, addr: Addr): Promise<void>;
|
||||
send(p: Uint8Array, addr: Addr): Promise<number>;
|
||||
/** UNSTABLE: new API, yet to be vetted.
|
||||
*
|
||||
* Close closes the socket. Any pending message promises will be rejected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue