一款简单易用的基础网络通讯组件库。

SystemThreadingExtensionWithCancellation 方法

重载列表

WithCancellation(Task, CancellationToken) Wraps a task with one that will complete as cancelled based on a cancellation cancellationToken, allowing someone to await a task but be able to break out early by cancelling the cancellationToken.
WithCancellationT(TaskT, CancellationToken) Wraps a task with one that will complete as cancelled based on a cancellation cancellationToken, allowing someone to await a task but be able to break out early by cancelling the cancellationToken.

参见