Interface IMainThreadTaskScheduler
An interface for an object that can behave as a System.Threading.Tasks.TaskScheduler that invokes its tasks on the UI (main) thread of an application. Not applicable for all platforms, as some do not have main threads set up in a way that is usable (e.g. .NET Core)
Namespace: Couchbase.Lite.DI
Assembly: Couchbase.Lite.dll
Syntax
public interface IMainThreadTaskScheduler
Properties
| Improve this Doc View SourceIsMainThread
Gets if the currently executing thread is the main thread of the application
Declaration
bool IsMainThread { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceAsTaskScheduler()
Returns the object as a System.Threading.Tasks.TaskScheduler so that it can be used for various .NET framework methods
Declaration
TaskScheduler AsTaskScheduler()
Returns
Type | Description |
---|---|
System.Threading.Tasks.TaskScheduler | The main thread scheduler cast to a System.Threading.Tasks.TaskScheduler |