Java.Util.Concurrent.CountDownLatch.Await Method
Causes the current thread to wait until the latch has counted down to zero, unless the thread is Java.Lang.Thread.Interrupt.

Syntax

[Android.Runtime.Register("await", "()V", "GetAwaitHandler")]
public virtual void Await ()

Exceptions

TypeReason
Java.Lang.InterruptedExceptionif the current thread is interrupted while waiting

Remarks

Causes the current thread to wait until the latch has counted down to zero, unless the thread is Java.Lang.Thread.Interrupt.

If the current count is zero then this method returns immediately.

If the current count is greater than zero then the current thread becomes disabled for thread scheduling purposes and lies dormant until one of two things happen:

If the current thread:

then Java.Lang.InterruptedException is thrown and the current thread's interrupted status is cleared.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1