Function.InvokeAfter(()=>函数,#duration(日,时,分,秒))
说明:表示时间#duration(0,0,0,0.3) 代表0.3秒

固定间隔

  1. (x)=>
  2. let
  3. = Function.InvokeAfter(()=>x,#duration(0,0,0,0.3))
  4. in

自定义固定间隔

  1. (function,second)=>
  2. let
  3. = Function.InvokeAfter(()=>function,#duration(0,0,0,second))
  4. in

随机间隔

生成随机整数

  1. Number.RandomBetween(1,10)

以查询作为函数delay

  1. (function)=>
  2. let
  3. = Function.InvokeAfter(()=>function,#duration(0,0,0,Number.RandomBetween(1,10)))
  4. in

以步骤作为函数delay

  1. delay = (function)=>Function.InvokeAfter(() => function, #duration(0, 0, 0, Number.RandomBetween(1, 10))),