react / runOnBackground
runOnBackground allows triggering js functions on the js context asynchronously.
| Type Parameter | 
|---|
| Fnextends (...args:any[]) =>any | 
| Parameter | Type | Description | 
|---|---|---|
| f | Fn | The js function to be called. | 
Function
A function. Calling which with the arguments to be passed to the js function to trigger it on the js context.
| Parameter | Type | 
|---|---|
| ... args | Parameters<Fn> | 
void
@lynx-js/react/runtime/lib/worklet/runWorklet.d.ts:14