2
我一直在以各种方式尝试让我的程序在运行下一行代码之前休眠10秒。在运行下一个操作之前进行x秒睡眠
this.SetContentView (Resource_Layout.Main)
let timer = new System.Timers.Timer(10000.0)
async{do timer.Start()}
this.SetContentView (Resource_Layout.next)
我无法获得任何解决方案。
你试过'Async.sleep'吗? –
yeps。也许我没有正确使用它。 'Async.Sleep(10000)'给我类型不匹配 – Nulle
http://fsharpforfunandprofit.com/posts/concurrency-async-and-parallel/ –