Skip to content

TaskPoolScheduler class

Defined in

Namespace: System.Reactive.Concurrency Assembly: System.Reactive.dll Full name: System.Reactive.Concurrency.TaskPoolScheduler Modifiers: public sealed

Summary

        Represents an object that schedules units of work on the Task Parallel Library (TPL) task pool.
        

Applies to

netstandard2.0

Class hierarchy
classDiagram
class TaskPoolScheduler
class LocalScheduler
LocalScheduler <|-- TaskPoolScheduler
class ISchedulerLongRunning {
    <>
}
ISchedulerLongRunning <|.. TaskPoolScheduler
class ISchedulerPeriodic {
    <>
}
ISchedulerPeriodic <|.. TaskPoolScheduler

Inherits from: LocalScheduler

Implements: ISchedulerLongRunning, ISchedulerPeriodic

Constructors

NameSummary
.ctorCreates an object that schedules units of work using the provided TaskFactory.

Properties

NameSummary
static DefaultGets an instance of this scheduler that uses the default TaskScheduler.

Methods

NameSummary
ScheduleSchedules an action to be executed.
ScheduleLongRunningSchedules a long-running task by creating a new task using TaskCreationOptions.LongRunning. Cancellation happens through polling.
StartStopwatchGets a new stopwatch object.
SchedulePeriodicSchedules a periodic piece of work by running a platform-specific timer to create tasks periodically.
Inherited members

See also