Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Scheduler Class

Provides a set of static methods for creating Schedulers.

System.Object
  System.Reactive.Concurrency.Scheduler

Namespace:  System.Reactive.Concurrency
Assembly:  System.Reactive (in System.Reactive.dll)
public static class Scheduler

The Scheduler type exposes the following members.

  NameDescription
Public propertyStatic memberCurrentThread Gets the scheduler that schedules work as soon as possible on the current thread.
Public propertyStatic memberImmediate Gets the scheduler that schedules work immediately on the current thread.
Public propertyStatic memberNewThread Gets the scheduler that schedules work on a new thread.
Public propertyStatic memberNowRepresents a notion of time for this scheduler. Tasks being scheduled on a scheduler will adhere to the time denoted by this property.
Public propertyStatic memberTaskPool Gets the scheduler that schedules work on the default Task Factory.
Public propertyStatic memberThreadPool Gets the scheduler that schedules work on the ThreadPool.
Top
  NameDescription
Public methodStatic memberNormalizeEnsures that no time spans are negative.
Public methodStatic memberSchedule(IScheduler, Action) Schedules an action to be executed.
Public methodStatic memberSchedule(IScheduler, Action<Action>) Schedules an action to be executed recursively.
Public methodStatic memberSchedule(IScheduler, DateTimeOffset, Action) Schedules an action to be executed at dueTime.
Public methodStatic memberSchedule(IScheduler, DateTimeOffset, Action<Action<DateTimeOffset>>) Schedules an action to be executed after dueTime.
Public methodStatic memberSchedule(IScheduler, TimeSpan, Action) Schedules an action to be executed after dueTime.
Public methodStatic memberSchedule(IScheduler, TimeSpan, Action<Action<TimeSpan>>) Schedules an action to be executed recursively after each dueTime.
Public methodStatic memberSchedule<TState>(IScheduler, TState, Action<TState, Action<TState>>) Schedules an action to be executed recursively.
Public methodStatic memberSchedule<TState>(IScheduler, TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>)Schedules an action to be executed recursively at each dueTime.
Public methodStatic memberSchedule<TState>(IScheduler, TState, TimeSpan, Action<TState, Action<TState, TimeSpan>>) Schedules an action to be executed recursively after each dueTime.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.