Java.Util.Concurrent.Locks.LockSupport.ParkNanos Method
Disables the current thread for thread scheduling purposes, for up to the specified waiting time, unless the permit is available.

Syntax

[Android.Runtime.Register("parkNanos", "(J)V", "")]
public static void ParkNanos (long nanos)

Parameters

nanos
the maximum number of nanoseconds to wait

Remarks

Disables the current thread for thread scheduling purposes, for up to the specified waiting time, unless the permit is available.

If the permit is available then it is consumed and the call returns immediately; otherwise the current thread becomes disabled for thread scheduling purposes and lies dormant until one of four things happens:

This method does not report which of these caused the method to return. Callers should re-check the conditions which caused the thread to park in the first place. Callers may also determine, for example, the interrupt status of the thread, or the elapsed time upon return.

[Android Documentation]

Requirements

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