Show / Hide Table of Contents

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 Source

IsMainThread

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 Source

AsTaskScheduler()

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

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX