Skip to content

NewThreadScheduler class

Defined in

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

Summary

        Represents an object that schedules each unit of work on a separate thread.
        

Applies to

netstandard2.0

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

Inherits from: LocalScheduler

Implements: ISchedulerLongRunning, ISchedulerPeriodic

Constructors

NameSummary
.ctorCreates an object that schedules each unit of work on a separate thread.

Properties

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

Methods

NameSummary
ScheduleSchedules an action to be executed after dueTime.
ScheduleLongRunningSchedules a long-running task by creating a new thread. Cancellation happens through polling.
SchedulePeriodicSchedules a periodic piece of work by creating a new thread that goes to sleep when work has been dispatched and wakes up again at the next periodic due time.
StartStopwatchStarts a new stopwatch object.
Inherited members