Share via


TimeUnit.TimedJoin(Thread, Int64) Method

Definition

Performs a timed Thread#join(long, int) Thread.join using this time unit.

[Android.Runtime.Register("timedJoin", "(Ljava/lang/Thread;J)V", "")]
public void TimedJoin (Java.Lang.Thread? thread, long timeout);
[<Android.Runtime.Register("timedJoin", "(Ljava/lang/Thread;J)V", "")>]
member this.TimedJoin : Java.Lang.Thread * int64 -> unit

Parameters

thread
Thread

the thread to wait for

timeout
Int64

the maximum time to wait. If less than or equal to zero, do not wait at all.

Attributes

Exceptions

if interrupted while waiting

Remarks

Performs a timed Thread#join(long, int) Thread.join using this time unit. This is a convenience method that converts time arguments into the form required by the Thread.join method.

Java documentation for java.util.concurrent.TimeUnit.timedJoin(java.lang.Thread, long).

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