File tree Expand file tree Collapse file tree 3 files changed +255
-114
lines changed
Expand file tree Collapse file tree 3 files changed +255
-114
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,8 @@ out var loadError
201201 // CSV support: take first column, strip quotes
202202 var span = line . AsSpan ( ) ;
203203 int comma = span . IndexOf ( ',' ) ;
204- if ( comma >= 0 ) span = span [ ..comma ] ;
204+ if ( comma >= 0 )
205+ span = span [ ..comma ] ;
205206 if ( span . Length >= 2 && span [ 0 ] == '"' && span [ ^ 1 ] == '"' )
206207 span = span [ 1 ..^ 1 ] ;
207208 return span . ToString ( ) . ToUpperInvariant ( ) . Replace ( '0' , 'O' ) ;
@@ -323,7 +324,11 @@ out var loadError
323324 ) ;
324325
325326 using var search = settings . Start ( ) ;
326- try { await search . Start ( _cts . Token ) ; }
327+ try
328+ {
329+ search . Start ( _cts . Token ) ;
330+ await search . WaitForCompletionAsync ( _cts . Token ) ;
331+ }
327332 catch ( OperationCanceledException ) { }
328333
329334 bool cancelled = _cts . Token . IsCancellationRequested ;
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public static MotelySeedAnalysis Analyze(MotelySeedAnalysisConfig cfg)
128128 . WithThreadCount ( 1 ) ;
129129
130130 using var search = searchSettings . Start ( ) ;
131- search . Start ( ) . Wait ( ) ;
131+ search . AwaitCompletion ( ) ;
132132
133133 Debug . Assert ( filterDesc . LastAnalysis != null ) ;
134134
You can’t perform that action at this time.
0 commit comments