Skip to content

Commit

Permalink
Rename source file and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abelbraaksma committed Dec 19, 2023
1 parent ac58c65 commit aa666c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<Compile Include="TaskSeq.Pick.Tests.fs" />
<Compile Include="TaskSeq.Singleton.Tests.fs" />
<Compile Include="TaskSeq.Tail.Tests.fs" />
<Compile Include="TaskSeq.Take.fs" />
<Compile Include="TaskSeq.Take.Tests.fs" />
<Compile Include="TaskSeq.TakeWhile.Tests.fs" />
<Compile Include="TaskSeq.ToXXX.Tests.fs" />
<Compile Include="TaskSeq.Zip.Tests.fs" />
Expand Down
6 changes: 3 additions & 3 deletions src/FSharp.Control.TaskSeq/TaskSeqInternal.fs
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ module internal TaskSeqInternal =
i <- i + 1 // update before moving: we are counting, not indexing
go <- step

| Some (Predicate predicate) ->
| Some(Predicate predicate) ->
while go do
if predicate e.Current then
i <- i + 1

let! step = e.MoveNextAsync()
go <- step

| Some (PredicateAsync predicate) ->
| Some(PredicateAsync predicate) ->
while go do
match! predicate e.Current with
| true -> i <- i + 1
Expand Down Expand Up @@ -215,7 +215,7 @@ module internal TaskSeqInternal =
// multiple threads access the same item through the same enumerator (which is
// bad practice, but hey, who're we to judge).
if isNull value then
value <- Lazy<_>.Create (fun () -> init i)
value <- Lazy<_>.Create(fun () -> init i)

yield value.Force()
value <- Unchecked.defaultof<_>
Expand Down

0 comments on commit aa666c5

Please sign in to comment.