Summary
Queue an operation to run in the background that returns a value. All operations with the same key will run in sequence,
waiting for the previous operation to complete.
Syntax
public IObservable<T> EnqueueOperation<T>(string key, Func<T> calculationFunc)
Type Parameters
Name |
Description |
T |
The type of item in the queue. |
Parameters
Name |
Type |
Description |
key |
string |
The key to use. |
calculationFunc |
Func<T> |
A method to run in the background that returns a single value. |
Return Value
Type |
Description |
IObservable<T> |
A future value. |