ForkJoinTask.Get Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Get() |
Waits if necessary for the computation to complete, and then retrieves its result. |
Get(Int64, TimeUnit) |
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. |
Get()
Waits if necessary for the computation to complete, and then retrieves its result.
[Android.Runtime.Register("get", "()Ljava/lang/Object;", "")]
public Java.Lang.Object? Get ();
[<Android.Runtime.Register("get", "()Ljava/lang/Object;", "")>]
abstract member Get : unit -> Java.Lang.Object
override this.Get : unit -> Java.Lang.Object
Returns
the computed result
Implements
- Attributes
Exceptions
if the computation was cancelled
if the computation threw an exception
if the current thread is not a member of a ForkJoinPool and was interrupted while waiting
Remarks
Waits if necessary for the computation to complete, and then retrieves its result.
Java documentation for java.util.concurrent.ForkJoinTask.get()
.
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
Get(Int64, TimeUnit)
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
[Android.Runtime.Register("get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "")]
public Java.Lang.Object? Get (long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "")>]
abstract member Get : int64 * Java.Util.Concurrent.TimeUnit -> Java.Lang.Object
override this.Get : int64 * Java.Util.Concurrent.TimeUnit -> Java.Lang.Object
Parameters
- timeout
- Int64
the maximum time to wait
- unit
- TimeUnit
the time unit of the timeout argument
Returns
the computed result
Implements
- Attributes
Exceptions
if the computation was cancelled
if the computation threw an exception
if the current thread is not a member of a ForkJoinPool and was interrupted while waiting
if the wait timed out
Remarks
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
Java documentation for java.util.concurrent.ForkJoinTask.get(long, java.util.concurrent.TimeUnit)
.
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.