I am currently working on a project, and I need to queue some tasks for processing, this is the requirement:
- Jobs must be processed in turn
- The next item must be available in
So I want something similar to:
Task<result> QueueJob(params here) {
I tried to run a background task that simply pulls items from the queue and processes the task, but difficulties arise from the background task to the method.
If necessary, I could only go along the path of the completion callback request in the QueueJob method, but it would be great if I could get the transparent task back, which allows you to wait for the task to be processed (even if there are tasks in front of it in the queue).
c # queue task-parallel-library
Clint
source share