# Thread class

Namespace: [Eto.Threading](https://eto.picoe.ca/api/namespace/eto.threading.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(Thread.IHandler)]
public class Thread : Widget
```

Provides access to platform-specific threading. Not all platforms implement this as you can use System.Threading.Thread instead in most cases.

**Remarks:** Most platforms have a concept of threads, though some (e.g. WinRT) do not. This may be removed in a future version in favour of using Task.Run(), Task.Delay(), which works across all platforms on .net 4.5+ and PCL.

## Constructors

- [Thread](https://eto.picoe.ca/api/type/eto.threading.thread/ctor.md): Initializes a new instance of the [Thread](https://eto.picoe.ca/api/type/eto.threading.thread.md) class for a specific ation

## Properties

- [CurrentThread](https://eto.picoe.ca/api/type/eto.threading.thread/currentthread.md): (static) Gets the current thread instance
- [IsAlive](https://eto.picoe.ca/api/type/eto.threading.thread/isalive.md): Gets a value indicating whether this thread is alive.
- [IsMain](https://eto.picoe.ca/api/type/eto.threading.thread/ismain.md): Gets a value indicating whether this thread instance is the main UI thread.
- [IsMainThread](https://eto.picoe.ca/api/type/eto.threading.thread/ismainthread.md): (static) Gets a value indicating if the current thread is the main UI thread.
- [MainThread](https://eto.picoe.ca/api/type/eto.threading.thread/mainthread.md): (static) Gets the main thread.

## Methods

- [Abort](https://eto.picoe.ca/api/type/eto.threading.thread/abort.md): Abort this instance, for custom thread instances
- [GetCallback](https://eto.picoe.ca/api/type/eto.threading.thread/getcallback.md): Gets an instance of an object used to perform callbacks to the widget from handler implementations
- [OnExecuted](https://eto.picoe.ca/api/type/eto.threading.thread/onexecuted.md): Called when the thread is executed, for custom thread instances
- [Start](https://eto.picoe.ca/api/type/eto.threading.thread/start.md): Start the thread, for custom thread instances

## Inherited Members

- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
