Version: 2023.2
public bool TrySetCanceled ();

返回

bool Indicates if the cancellation was successfuly raised.

描述

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


Did you find this page useful? Please give it a rating: