docs: Fix runAsync example

This commit is contained in:
Marc Rousavy 2023-09-30 12:12:43 +02:00
parent af2ef57951
commit ce07750dea

View File

@ -161,7 +161,7 @@ const frameProcessor = useFrameProcessor((frame) => {
'worklet'
console.log("I'm running synchronously at 60 FPS!")
runAsync(() => {
runAsync(frame, () => {
'worklet'
console.log("I'm running asynchronously, possibly at a lower FPS rate!")
})