Sdílet prostřednictvím


FutureTask.Done Method

Definition

Protected method invoked when this task transitions to state isDone (whether normally or via cancellation).

[Android.Runtime.Register("done", "()V", "GetDoneHandler")]
protected virtual void Done ();
[<Android.Runtime.Register("done", "()V", "GetDoneHandler")>]
abstract member Done : unit -> unit
override this.Done : unit -> unit
Attributes

Remarks

Protected method invoked when this task transitions to state isDone (whether normally or via cancellation). The default implementation does nothing. Subclasses may override this method to invoke completion callbacks or perform bookkeeping. Note that you can query status inside the implementation of this method to determine whether this task has been cancelled.

Java documentation for java.util.concurrent.FutureTask.done().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to