createWorkletRuntime
createWorkletRuntime lets you create a new JS runtime which can be used to run worklets possibly on different threads than JS or UI thread. Use this function if you need to integrate with Worklet Runtimes in C++.
runOnRuntimeAsync
runOnRuntimeAsync lets you asynchronously run worklets on a Worker Runtime.
runOnRuntimeSync
runOnRuntimeSync lets you run a workletized function synchronously on a Worker Runtime. It's blocking - meaning that it can preempt the runtime from a thread that's currently executing it.
runOnRuntimeSyncWithId
runOnRuntimeSyncWithId is a variant of runOnRuntimeSync where you use the runtime's id instead of the runtime object. It's useful when you don't have access to the runtime object, but you know its id.
runOnUIAsync
runOnUIAsync lets you asynchronously run workletized functions on the UI thread.
runOnUISync
runOnUISync lets you run a workletized function synchronously on the UI Runtime.
scheduleOnRN
scheduleOnRN lets you schedule a function to be executed on the RN Runtime from any Worklet Runtime.
scheduleOnRuntime
scheduleOnRuntime lets you schedule a worklet to be executed on a Worker Runtime.
scheduleOnRuntimeWithId
scheduleOnRuntimeWithId is a variant of scheduleOnRuntime where you use the runtime's id instead of the runtime object. It's useful when you don't have access to the runtime object, but you know its id.
scheduleOnUI
scheduleOnUI lets you schedule a function to be executed on the UI Runtime. The callback executes asynchronously and doesn't return a value.
UIRuntimeId
The value of the UI Runtime's id. Each Worklet Runtime has a unique id that can be used to target it from functions like runOnRuntimeSyncWithId and scheduleOnRuntimeWithId.
callMicrotasks
callMicrotasks flushes the microtask queue from the UI thread.
executeOnUIRuntimeSync
<DeprecatedBanner
runOnJS
<DeprecatedBanner
runOnRuntime
<DeprecatedBanner
runOnUI
<DeprecatedBanner