Java.Lang.Thread.Join Method
Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies or the specified timeout expires, whatever happens first.

Syntax

[Android.Runtime.Register("join", "(J)V", "")]
public void Join (long millis)

See Also

Object.NotifyAll
ThreadDeath

Parameters

millis
The maximum time to wait (in milliseconds).

Exceptions

TypeReason
Java.Lang.InterruptedExceptionif the current thread has been interrupted. The interrupted status of the current thread will be cleared before the exception is thrown.

Remarks

Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies or the specified timeout expires, whatever happens first.

A timeout of zero means the calling thread should wait forever unless interrupted.

[Android Documentation]

Requirements

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