Scheduler Class
Provides a set of static methods for creating Schedulers.
Inheritance Hierarchy
System.Object
System.Reactive.Concurrency.Scheduler
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class Scheduler
'Usage
public static class Scheduler
[ExtensionAttribute]
public ref class Scheduler abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type Scheduler = class end
public final class Scheduler
The Scheduler type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() ![]() |
CurrentThread | Gets the scheduler that schedules work as soon as possible on the current thread. |
![]() ![]() |
Immediate | Gets the scheduler that schedules work immediately on the current thread. |
![]() ![]() |
NewThread | Gets the scheduler that schedules work on a new thread. |
![]() ![]() |
Now | Represents a notion of time for this scheduler. Tasks being scheduled on a scheduler will adhere to the time denoted by this property. |
![]() ![]() |
TaskPool | Gets the scheduler that schedules work on the default Task Factory. |
![]() ![]() |
ThreadPool | Gets the scheduler that schedules work on the ThreadPool. |
Top
Methods
Name | Description | |
---|---|---|
![]() ![]() |
Normalize | Ensures that no time spans are negative. |
![]() ![]() |
Schedule(IScheduler, Action) | Schedules an action to be executed. |
![]() ![]() |
Schedule(IScheduler, Action<Action>) | Schedules an action to be executed recursively. |
![]() ![]() |
Schedule(IScheduler, DateTimeOffset, Action) | Schedules an action to be executed at dueTime. |
![]() ![]() |
Schedule(IScheduler, DateTimeOffset, Action<Action<DateTimeOffset>>) | Schedules an action to be executed after dueTime. |
![]() ![]() |
Schedule(IScheduler, TimeSpan, Action) | Schedules an action to be executed after dueTime. |
![]() ![]() |
Schedule(IScheduler, TimeSpan, Action<Action<TimeSpan>>) | Schedules an action to be executed recursively after each dueTime. |
![]() ![]() |
Schedule<TState>(IScheduler, TState, Action<TState, Action<TState>>) | Schedules an action to be executed recursively. |
![]() ![]() |
Schedule<TState>(IScheduler, TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>) | Schedules an action to be executed recursively at each dueTime. |
![]() ![]() |
Schedule<TState>(IScheduler, TState, TimeSpan, Action<TState, Action<TState, TimeSpan>>) | Schedules an action to be executed recursively after each dueTime. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.