Scheduler

Scheduler Methods

Include Protected Members
Include Inherited Members

The Scheduler type exposes the following members.

Methods

NameDescriptionPublic methodStatic memberNormalizeEnsures that no time spans are negative.Public methodStatic memberSchedule(IScheduler, Action)Schedules an action to be executed.Public methodStatic memberSchedule(IScheduler, 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>)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>)Schedules an action to be executed recursively after each dueTime.Public methodStatic memberSchedule(IScheduler, TState, Action<TState, Action>)Schedules an action to be executed recursively.Public methodStatic memberSchedule(IScheduler, TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>)Schedules an action to be executed recursively at each dueTime.Public methodStatic memberSchedule(IScheduler, TState, TimeSpan, Action<TState, Action<TState, TimeSpan>>)Schedules an action to be executed recursively after each dueTime.Top

See Also

Reference

Scheduler Class

System.Reactive.Concurrency Namespace

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

NameDescriptionPublic propertyStatic memberCurrentThreadGets the scheduler that schedules work as soon as possible on the current thread.Public propertyStatic memberImmediateGets the scheduler that schedules work immediately on the current thread.Public propertyStatic memberNewThreadGets 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 memberTaskPoolGets the scheduler that schedules work on the default Task Factory.Public propertyStatic memberThreadPoolGets the scheduler that schedules work on the ThreadPool.Top

Methods

NameDescriptionPublic methodStatic memberNormalizeEnsures that no time spans are negative.Public methodStatic memberSchedule(IScheduler, Action)Schedules an action to be executed.Public methodStatic memberSchedule(IScheduler, 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>)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>)Schedules an action to be executed recursively after each dueTime.Public methodStatic memberSchedule(IScheduler, TState, Action<TState, Action>)Schedules an action to be executed recursively.Public methodStatic memberSchedule(IScheduler, TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>)Schedules an action to be executed recursively at each dueTime.Public methodStatic memberSchedule(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.

See Also

Reference

System.Reactive.Concurrency Namespace

Scheduler Properties

Include Protected Members
Include Inherited Members

The Scheduler type exposes the following members.

Properties

NameDescriptionPublic propertyStatic memberCurrentThreadGets the scheduler that schedules work as soon as possible on the current thread.Public propertyStatic memberImmediateGets the scheduler that schedules work immediately on the current thread.Public propertyStatic memberNewThreadGets 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 memberTaskPoolGets the scheduler that schedules work on the default Task Factory.Public propertyStatic memberThreadPoolGets the scheduler that schedules work on the ThreadPool.Top

See Also

Reference

Scheduler Class

System.Reactive.Concurrency Namespace