Skip to content

,System.Func{System.IObservable{--0}})} })} })}

OperationQueue.EnqueueObservableOperation(int, string, IObservable, Func>) method

Defined in

Type: OperationQueue Namespace: Punchclock.Reactive Assembly: Punchclock.Reactive.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Overloads

  • 1. public IObservable<T> EnqueueObservableOperation<T, TDontCare>(int priority, string key, IObservable<TDontCare> cancel, Func<IObservable<T>> asyncCalculationFunc)
  • 2. public IObservable<T> EnqueueObservableOperation<T>(int priority, string key, Func<IObservable<T>> asyncCalculationFunc)
  • 3. public IObservable<T> EnqueueObservableOperation<T>(int priority, Func<IObservable<T>> asyncCalculationFunc)

1. Overload

public IObservable<T> EnqueueObservableOperation<T, TDontCare>(int priority, string key, IObservable<TDontCare> cancel, Func<IObservable<T>> asyncCalculationFunc)

View source

Summary: This method enqueues an action to be run at a later time, according to the scheduling policies (i.e. via priority and key).

Type parameters

NameDescription
TThe type of item for the observable.
TDontCareType parameter used to allow any observable type for cancellation signal.

Parameters

NameTypeDescription
priorityintThe priority of operation. Higher priorities run before lower ones.
keystringA key to apply to the operation. Items with the same key will be run in order. Pass null or DefaultKey for non-keyed operations.
cancelIObservableAn observable which if signalled, the operation will be cancelled.
asyncCalculationFuncFunc>The async method to execute when scheduled.

Returns: IObservable -- An observable that produces the result of the async calculation.

2. Overload

public IObservable<T> EnqueueObservableOperation<T>(int priority, string key, Func<IObservable<T>> asyncCalculationFunc)

View source

Summary: This method enqueues an action to be run at a later time, according to the scheduling policies (i.e. via priority and key).

Type parameters

NameDescription
TThe type of item for the observable.

Parameters

NameTypeDescription
priorityintHigher priorities run before lower ones.
keystringItems with the same key will be run in order. Pass null or DefaultKey for non-keyed operations.
asyncCalculationFuncFunc>The async method to execute when scheduled.

Returns: IObservable -- An observable that produces the result of the async calculation.

3. Overload

public IObservable<T> EnqueueObservableOperation<T>(int priority, Func<IObservable<T>> asyncCalculationFunc)

View source

Summary: This method enqueues an action to be run at a later time, according to the scheduling policies (i.e. via priority).

Type parameters

NameDescription
TThe type of item for the observable.

Parameters

NameTypeDescription
priorityintHigher priorities run before lower ones.
asyncCalculationFuncFunc>The async method to execute when scheduled.

Returns: IObservable -- An observable that produces the result of the async calculation.