File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/DotNetCore.CAP/Processor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -200,13 +200,13 @@ public void Dispose()
200200 } ) ;
201201
202202 Task . WhenAll ( Enumerable . Range ( 0 , _options . ConsumerThreadCount )
203- . Select ( _ => Task . Run ( ( ) => Processing ( group , channel ) , _tasksCts ! . Token ) ) . ToArray ( ) ) ;
203+ . Select ( _ => Task . Run ( ( ) => Processing ( group , channel ) , _tasksCts ! . Token ) ) . ToArray ( ) ) ;
204204
205205 return channel ;
206206 } ) ;
207207 }
208208
209- private async Task Sending ( )
209+ private async ValueTask Sending ( )
210210 {
211211 try
212212 {
@@ -232,7 +232,7 @@ private async Task Sending()
232232 }
233233 }
234234
235- private async Task Processing ( string group , Channel < ( MediumMessage , ConsumerExecutorDescriptor ? ) > channel )
235+ private async ValueTask Processing ( string group , Channel < ( MediumMessage , ConsumerExecutorDescriptor ? ) > channel )
236236 {
237237 try
238238 {
You can’t perform that action at this time.
0 commit comments