Sdílet prostřednictvím


ForkJoinPool.IManagedBlocker.Block Method

Definition

Possibly blocks the current thread, for example waiting for a lock or condition.

[Android.Runtime.Register("block", "()Z", "GetBlockHandler:Java.Util.Concurrent.ForkJoinPool/IManagedBlockerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Block ();
[<Android.Runtime.Register("block", "()Z", "GetBlockHandler:Java.Util.Concurrent.ForkJoinPool/IManagedBlockerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Block : unit -> bool

Returns

true if no additional blocking is necessary (i.e., if isReleasable would return true)

Attributes

Remarks

Possibly blocks the current thread, for example waiting for a lock or condition.

Java documentation for java.util.concurrent.ForkJoinPool.ManagedBlocker.block().

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