【发布时间】:2016-08-01 01:53:34
【问题描述】:
我想延迟执行一条指令,同时不执行任何其他指令。
Here's the program
public async void parcours_anim(Queue<int> f, noeud[] Arb_b, LabelExpression[] Lbls_A)
{
int val = 0;
while (f.ToArray().Length != 0)
{
val = f.Dequeue();
index = Recherche_index(val, Lbls_A);
//Stop here before executing this instruction for like 2seconds
Arbre[index].Fill = Brushes.Blue;
// and then continue
}
}
【问题讨论】:
-
请将您的代码添加为文本,而不是图像
-
Thread.Sleep(2000)
标签: c# .net async-await delay