Function.InvokeAfter(()=>函数,#duration(日,时,分,秒))
说明:表示时间#duration(0,0,0,0.3) 代表0.3秒
固定间隔
(x)=>
let
源 = Function.InvokeAfter(()=>x,#duration(0,0,0,0.3))
in
源
自定义固定间隔
(function,second)=>
let
源 = Function.InvokeAfter(()=>function,#duration(0,0,0,second))
in
源
随机间隔
生成随机整数
Number.RandomBetween(1,10)
以查询作为函数delay
(function)=>
let
源 = Function.InvokeAfter(()=>function,#duration(0,0,0,Number.RandomBetween(1,10)))
in
源
以步骤作为函数delay
delay = (function)=>Function.InvokeAfter(() => function, #duration(0, 0, 0, Number.RandomBetween(1, 10))),