TPL Queue Processing
问题 I'm currently working on a a project and I have a need to queue some jobs for processing, here's the requirement: Jobs must be processed one at a time A queued item must be able to be waited on So I want something akin to: Task<result> QueueJob(params here) { /// Queue the job and somehow return a waitable task that will wait until the queued job has been executed and return the result. } I've tried having a background running task that just pulls items off a queue and processes the job, but