docs: Fix runAsync
example
This commit is contained in:
parent
af2ef57951
commit
ce07750dea
@ -161,7 +161,7 @@ const frameProcessor = useFrameProcessor((frame) => {
|
|||||||
'worklet'
|
'worklet'
|
||||||
console.log("I'm running synchronously at 60 FPS!")
|
console.log("I'm running synchronously at 60 FPS!")
|
||||||
|
|
||||||
runAsync(() => {
|
runAsync(frame, () => {
|
||||||
'worklet'
|
'worklet'
|
||||||
console.log("I'm running asynchronously, possibly at a lower FPS rate!")
|
console.log("I'm running asynchronously, possibly at a lower FPS rate!")
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user