Method
Receive
func Receive(buffer: Memory<byte>, cancellationToken: CancellationToken = default) -> Task<Result<int, SocketError>>
Declaring type: Socket
Module: System.Networking.Sockets
Assembly: System.Networking.dll
Source file: Socket.rvn
Requests cancellation cooperatively; the task is cancelled after provider acknowledgement.
Parameters
| Name | Type | Description |
|---|---|---|
buffer |
Memory<Byte> | |
cancellationToken |
CancellationToken |