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. This function is supposed to be used by third-party libraries that need to integrate with worklets. The return value represents the runtime and it's supposed to be passed to C++ side using JSI (JavaScript Interface) for further operations.
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.
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.
scheduleOnUI
scheduleOnUI lets you schedule a function to be executed on the UI Runtime. The callback executes asynchronously and doesn't return a value.
callMicrotasks
callMicrotasks flushes the microtask queue from the UI thread.
executeOnUIRuntimeSync
<DeprecatedBanner
runOnJS
<DeprecatedBanner
runOnRuntime
<DeprecatedBanner
runOnUI
<DeprecatedBanner