Version: 2023.1
public bool TrySetCanceled ();

返回

bool Indicates if the cancellation was successfuly raised.

描述

Raise cancellation (returns false if the awaitable was already completed or canceled).