File tree Expand file tree Collapse file tree 6 files changed +8
-21
lines changed
FSharp.Control.TaskSeq.SmokeTests
FSharp.Control.TaskSeq.Test Expand file tree Collapse file tree 6 files changed +8
-21
lines changed Original file line number Diff line number Diff line change 33 "isRoot" : true ,
44 "tools" : {
55 "fantomas" : {
6- "version" : " 6.3.0-alpha-004 " ,
6+ "version" : " 7.0.5 " ,
77 "commands" : [
88 " fantomas"
99 ]
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ CI runs both debug and release test configurations on `windows-latest`. Test res
5555
5656## Code Formatting
5757
58- Formatting is enforced by ** Fantomas** (version 6.3.0-alpha-004 , configured as a dotnet local tool).
58+ Formatting is enforced by ** Fantomas** (version 7.0.5 , configured as a dotnet local tool).
5959
6060Check formatting (CI runs this on every PR):
6161
Original file line number Diff line number Diff line change @@ -104,11 +104,7 @@ module Gen =
104104 /// properly, sequentially execute a chain of tasks in a non-blocking, non-overlapping way.
105105 let joinWithContinuation tasks =
106106 let simple ( t : unit -> Task < _ >) ( source : unit -> Task < _ >) : unit -> Task < _ > =
107- fun () ->
108- source()
109- .ContinueWith(( fun ( _ : Task ) -> t ()), TaskContinuationOptions.OnlyOnRanToCompletion)
110- .Unwrap()
111- :?> Task<_>
107+ fun () -> source() .ContinueWith(( fun ( _ : Task ) -> t ()), TaskContinuationOptions.OnlyOnRanToCompletion) .Unwrap() :?> Task<_>
112108
113109 let rec combine acc ( tasks : ( unit -> Task < _ >) list ) =
114110 match tasks with
Original file line number Diff line number Diff line change @@ -263,11 +263,7 @@ module TestUtils =
263263 /// properly, sequentially execute a chain of tasks in a non-blocking, non-overlapping way.
264264 let joinWithContinuation tasks =
265265 let simple ( t : unit -> Task < _ >) ( source : unit -> Task < _ >) : unit -> Task < _ > =
266- fun () ->
267- source()
268- .ContinueWith(( fun ( _ : Task ) -> t ()), TaskContinuationOptions.OnlyOnRanToCompletion)
269- .Unwrap()
270- :?> Task<_>
266+ fun () -> source() .ContinueWith(( fun ( _ : Task ) -> t ()), TaskContinuationOptions.OnlyOnRanToCompletion) .Unwrap() :?> Task<_>
271267
272268 let rec combine acc ( tasks : ( unit -> Task < _ >) list ) =
273269 match tasks with
Original file line number Diff line number Diff line change @@ -544,10 +544,8 @@ module LowPriority =
544544 and ^Awaiter :> ICriticalNotifyCompletion
545545 and ^Awaiter : ( member get_IsCompleted : unit -> bool )
546546 and ^Awaiter : ( member GetResult : unit -> 'T )>
547- (
548- task : ^TaskLike ,
549- continuation : ( 'T -> ResumableTSC < 'U >)
550- ) =
547+ ( task : ^TaskLike , continuation : ( 'T -> ResumableTSC < 'U >))
548+ =
551549
552550 ResumableTSC< 'U>( fun sm ->
553551 let mutable awaiter = ( ^TaskLike : ( member GetAwaiter : unit -> ^Awaiter ) ( task))
@@ -656,10 +654,7 @@ module HighPriority =
656654
657655 member inline _.Bind ( computation : Async < 'T >, continuation : ( 'T -> ResumableTSC < 'U >)) =
658656 ResumableTSC< 'U>( fun sm ->
659- let mutable awaiter =
660- Async
661- .StartImmediateAsTask( computation, cancellationToken = sm.Data.cancellationToken)
662- .GetAwaiter()
657+ let mutable awaiter = Async.StartImmediateAsTask( computation, cancellationToken = sm.Data.cancellationToken) .GetAwaiter()
663658
664659 let mutable __stack_fin = true
665660
Original file line number Diff line number Diff line change @@ -1261,7 +1261,7 @@ module internal TaskSeqInternal =
12611261 taskSeq {
12621262 use e = source.GetAsyncEnumerator CancellationToken.None
12631263
1264- for _ in count .. - 1 .. 1 do
1264+ for _ in count .. - 1 .. 1 do
12651265 let! step = e.MoveNextAsync()
12661266
12671267 if not step then
You can’t perform that action at this time.
0 commit comments