Answer the question
In order to leave comments, you need to log in
How to make a task queue with a callback in C#?
I want to do something like this in the code:
I want to add to the job queue (values) at any time
var que = new CallbackQueque<string>();
que.doTask += (str, callback) => { doSomeWork(); callback(); };
que.Add("one");
que.Add("two");
//в любое время
que.Add("three");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question