@lynx-js/react / runOnBackground
函数: runOnBackground()
runOnBackground allows triggering js functions on the background thread asynchronously.
类型参数
参数
返回
Function
A function. Calling which with the arguments to be passed to the js function to trigger it on the background thread. This function returns a promise that resolves to the return value of the js function.
参数
返回
Promise<R>
示例
定义于
@lynx-js/react/runtime/lib/snapshot/worklet/call/runOnBackground.d.ts:19