Skip to content

Commit 7c3651c

Browse files
author
Jamil Maqdis Anton
committed
WIP
1 parent 53df0cc commit 7c3651c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Read.fs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ module Read =
1919
| Backward -> store.ReadAllBackwards(startPositionInclusive, msgCount)
2020
|> Async.AwaitTask
2121

22+
let readFromAllStreamAsync': IStreamStore -> ReadingDirection -> StartPositionInclusive -> MessageCount -> CancellationToken -> Async<ReadAllPage> =
23+
fun store readingDirection startPositionInclusive msgCount cancellationToken ->
24+
match readingDirection with
25+
| Forward -> store.ReadAllForwards(startPositionInclusive, msgCount, cancellationToken)
26+
| Backward -> store.ReadAllBackwards(startPositionInclusive, msgCount, cancellationToken)
27+
|> Async.AwaitTask
28+
2229
let readFromStreamAsync: IStreamStore -> ReadingDirection -> StreamDetails -> MessageCount -> Async<ReadStreamPage> =
2330
fun store readingDirection streamDetails msgCount ->
2431
match readingDirection with

0 commit comments

Comments
 (0)