collectBounded

suspend fun collectBounded(collector: SignalCollector, context: Context, timeoutMs: Long = DEFAULT_COLLECT_TIMEOUT_MS): Result<List<FingerprintSignal>>

Runs a collector on the bounded IO dispatcher, wrapped in a trace slice, a timeout and a runCatching guard so a slow or failing probe cannot stall the app.

Return

A Result with the collected signals, or a failure if it timed out/threw.

Parameters

collector

Collector to execute.

context

Android context passed to SignalCollector.collect.

timeoutMs

Maximum time to allow the collector to run.