Click or drag to resize
IAsyncStatementUseT Method
Returns a cold IObservable which schedules the function f on the statement's database operation queue each time it is is subscribed to. The published values are generated by enumerating the IEnumerable returned by f.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax
IObservable<T> Use<T>(
	Func<IStatement, CancellationToken, IEnumerable<T>> f
)

Parameters

f
Type: SystemFuncIStatement, CancellationToken, IEnumerableT
A function that may synchronously use the provided IStatement and returns an IEnumerable of produced values that are published to the subscribed IObserver. The returned IEnumerable may block. This allows the IEnumerable to provide the results of enumerating the prepared statement for instance.

Type Parameters

T
The result type.

Return Value

Type: IObservableT
A cold observable of the values produced by the function f.
See Also