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.prettyAssembly: 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
)
abstract Use :
f : Func<IStatement, CancellationToken, IEnumerable<'T>> -> IObservable<'T>
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:
IObservableTA cold observable of the values produced by the function f.
See Also