📜  swift代码示例中的settimeout

📅  最后修改于: 2022-03-11 15:00:58.043000             🧑  作者: Mango

代码示例1
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) { // Change `2.0` to the desired number of seconds.
   // Code you want to be delayed
}