Click or drag to resize
AsyncStatementUseT Method (IAsyncStatement, FuncIStatement, IEnumerableT)
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
public static IObservable<T> Use<T>(
	this IAsyncStatement This,
	Func<IStatement, IEnumerable<T>> f
)

Parameters

This
Type: SQLitePCL.prettyIAsyncStatement
The async statement.
f
Type: SystemFuncIStatement, 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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncStatement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also