IWaitingClientTClient, TResultSendThenResponseAsync(ReadOnlyMemoryByte, CancellationToken) 方法
异步发送
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
Task<ResponsedData> SendThenResponseAsync(
ReadOnlyMemory<byte> memory,
CancellationToken token
)
Function SendThenResponseAsync (
memory As ReadOnlyMemory(Of Byte),
token As CancellationToken
) As Task(Of ResponsedData)
abstract SendThenResponseAsync :
memory : ReadOnlyMemory<byte> *
token : CancellationToken -> Task<ResponsedData>
- memory ReadOnlyMemoryByte
- 要发送的数据,使用内存表示
- token CancellationToken
- 取消令箭,用于取消操作
TaskResponsedData返回的数据,类型为ResponsedData