Поделиться через


Thread.IsVirtual Property

Definition

Returns true if this thread is a virtual thread.

public bool IsVirtual { [Android.Runtime.Register("isVirtual", "()Z", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("isVirtual", "()Z", "", ApiSince=36)>]
member this.IsVirtual : bool

Property Value

true if this thread is a virtual thread

This method always returns false because virtual thread isn't implemented on Android yet. This method is only useful for cross-platform libraries.

Attributes

Remarks

Returns true if this thread is a virtual thread. A virtual thread is scheduled by the Java virtual machine rather than the operating system.

Added in 21.

Java documentation for java.lang.Thread.isVirtual().

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