ForkJoinTask.TryUnfork Method

Definition

Tries to unschedule this task for execution.

[Android.Runtime.Register("tryUnfork", "()Z", "GetTryUnforkHandler")]
public virtual bool TryUnfork ();
[<Android.Runtime.Register("tryUnfork", "()Z", "GetTryUnforkHandler")>]
abstract member TryUnfork : unit -> bool
override this.TryUnfork : unit -> bool

Returns

true if unforked

Attributes

Remarks

Tries to unschedule this task for execution. This method will typically (but is not guaranteed to) succeed if this task is the most recently forked task by the current thread, and has not commenced executing in another thread. This method may be useful when arranging alternative local processing of tasks that could have been, but were not, stolen.

Java documentation for java.util.concurrent.ForkJoinTask.tryUnfork().

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