C
C#2y ago
SWEETPONY

❔ how to add parallel processing?

I have following function:
[DeliveryHandler( Name = ReportsAPI.Commands.ReportsGenerate )]
public async Task OnReportsGenerate(
IDeliveryHandlerContext context,
ReportsGenerateArguments arguments )
{
/// reports are generated sequentially for now
/// think about parallel processing

async Task GenerateProgress( ReportGenerateProgress progress )
{
/// fill progress payload
}

// generate report logic
}
[DeliveryHandler( Name = ReportsAPI.Commands.ReportsGenerate )]
public async Task OnReportsGenerate(
IDeliveryHandlerContext context,
ReportsGenerateArguments arguments )
{
/// reports are generated sequentially for now
/// think about parallel processing

async Task GenerateProgress( ReportGenerateProgress progress )
{
/// fill progress payload
}

// generate report logic
}
I can call OnReportGenerate from bus and report will generate sequentially/ So.. how can I fix this? And another question: how can I add progress?
3 Replies
SWEETPONY
SWEETPONYOP2y ago
I don't need solution I'd like to receive any advices
codesandplays
codesandplays2y ago
I'm not sure what you're asking
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server