Click or drag to resize

IAsyncSessionReadTransactionAsyncT Method (FuncIAsyncTransaction, TaskT)

Asynchronously execute given unit of work in a Read transaction.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
Task<T> ReadTransactionAsync<T>(
	Func<IAsyncTransaction, Task<T>> work
)

Parameters

work
Type: SystemFuncIAsyncTransaction, TaskT
The FuncT, TResult to be applied to a new read transaction.

Type Parameters

T
The return type of the given unit of work.

Return Value

Type: TaskT
A task of a result as returned by the given unit of work.
See Also