예제 #1
0
 /// <nodoc />
 public ActionQueue(int degreeOfParallelism, int?capacityLimit = null)
 {
     m_actionBlock = ActionBlockSlim.CreateWithAsyncAction <Func <Task> >(degreeOfParallelism, static f => f(), capacityLimit);
 }
예제 #2
0
 /// <nodoc />
 public ActionQueue(int degreeOfParallelism)
 {
     m_actionBlock = ActionBlockSlim <Func <Task> > .CreateWithAsyncAction(degreeOfParallelism, f => f());
 }