共用方式為


ForkJoinPool.AwaitQuiescence(Int64, TimeUnit) Method

Definition

If called by a ForkJoinTask operating in this pool, equivalent in effect to ForkJoinTask#helpQuiesce.

[Android.Runtime.Register("awaitQuiescence", "(JLjava/util/concurrent/TimeUnit;)Z", "GetAwaitQuiescence_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual bool AwaitQuiescence (long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("awaitQuiescence", "(JLjava/util/concurrent/TimeUnit;)Z", "GetAwaitQuiescence_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member AwaitQuiescence : int64 * Java.Util.Concurrent.TimeUnit -> bool
override this.AwaitQuiescence : int64 * Java.Util.Concurrent.TimeUnit -> bool

Parameters

timeout
Int64

the maximum time to wait

unit
TimeUnit

the time unit of the timeout argument

Returns

true if quiescent; false if the timeout elapsed.

Attributes

Remarks

If called by a ForkJoinTask operating in this pool, equivalent in effect to ForkJoinTask#helpQuiesce. Otherwise, waits and/or attempts to assist performing tasks until this pool #isQuiescent or the indicated timeout elapses.

Java documentation for java.util.concurrent.ForkJoinPool.awaitQuiescence(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.

Applies to