createAsyncRunner

function createAsyncRunner(): AsyncRunner

Creates a new AsyncRunner backed by a dedicated NativeThread.

An AsyncRunner can be used inside a Frame Processor to offload work to a separate thread without blocking the Camera pipeline.

Discussion

This is the Worklets-based implementation used by the default RuntimeThreadProvider. Most users should use useAsyncRunner() instead.

See

useAsyncRunner

On this page

No Headings