SyncFence.Await(Duration) Method

Definition

Waits for a SyncFence to signal for up to the timeout duration.

[Android.Runtime.Register("await", "(Ljava/time/Duration;)Z", "", ApiSince=33)]
public bool Await (Java.Time.Duration timeout);
[<Android.Runtime.Register("await", "(Ljava/time/Duration;)Z", "", ApiSince=33)>]
member this.Await : Java.Time.Duration -> bool

Parameters

timeout
Duration

The timeout duration. If the duration is negative, then this waits forever.

Returns

true if the fence signaled or isn't valid, false otherwise.

Attributes

Remarks

Waits for a SyncFence to signal for up to the timeout duration.

An invalid SyncFence, that is if #isValid() is false, is treated equivalently to a SyncFence that has already signaled. That is, wait() will immediately return true.

Java documentation for android.hardware.SyncFence.await(java.time.Duration).

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