File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11namespace SqlStreamStore.FSharp
22
3+ open System.Threading
34open SqlStreamStore
45open SqlStreamStore.Streams
56
@@ -13,4 +14,11 @@ module Read =
1314 match direction with
1415 | Forward -> conn.ReadStreamForwards( stream.streamName, stream.position, msgCount)
1516 | Backward -> conn.ReadStreamBackwards( stream.streamName, stream.position, msgCount)
16- |> Async.AwaitTask
17+ |> Async.AwaitTask
18+
19+ let readFromStreamAsync ' : IStreamStore -> ReadingDirection -> StreamDetails -> int -> CancellationToken -> Async < ReadStreamPage > =
20+ fun conn direction stream msgCount cancellationToken ->
21+ match direction with
22+ | Forward -> conn.ReadStreamForwards( stream.streamName, stream.position, msgCount, cancellationToken)
23+ | Backward -> conn.ReadStreamBackwards( stream.streamName, stream.position, msgCount, cancellationToken)
24+ |> Async.AwaitTask
You can’t perform that action at this time.
0 commit comments