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
runOnRuntimeAsyncWithId
# runOnRuntimeAsyncWithId
runOnRuntimeSync
# runOnRuntimeSync
runOnRuntimeSyncWithId
# runOnRuntimeSyncWithId
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
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
# UIRuntimeId
callMicrotasks
callMicrotasks flushes the microtask queue from the UI thread.
executeOnUIRuntimeSync
<DeprecatedBanner
runOnJS
<DeprecatedBanner
runOnRuntime
<DeprecatedBanner
runOnUI
<DeprecatedBanner