IAsyncDatabaseConnectionUseT Method |
Returns a cold IObservable which schedules the function f on the 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<IDatabaseConnection, CancellationToken, IEnumerable<T>> f
)
abstract Use :
f : Func<IDatabaseConnection, CancellationToken, IEnumerable<'T>> -> IObservable<'T>
Parameters
- f
- Type: SystemFuncIDatabaseConnection, CancellationToken, IEnumerableT
A function that may synchronously use the provided IDatabaseConnection 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 a SQLite prepared statement for instance.
Notes to Implementers |
---|
The IDatabaseConnection may be used to prepare statements and open database blobs,
but these must not be captured or otherwise externally referenced unless their use is
scheduled on the connections's operation queue via future calls to UseT(FuncIDatabaseConnection, CancellationToken, IEnumerableT).
|
The result type.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SQLitePCL.pretty.IAsyncDatabaseConnection.Use``1(System.Func{SQLitePCL.pretty.IDatabaseConnection,System.Threading.CancellationToken,System.Collections.Generic.IEnumerable{``0}})"]
Return Value
Type:
IObservableTA cold observable of the values produced by the function f.
See Also