waitForLibraryLoad

abstract suspend fun waitForLibraryLoad(timeoutMillis: Long): Result<Unit>

Suspends until the SQLCipher native library is ready to use. Safe to call from any thread. Returns immediately if already loaded.

Return

Result.success if loaded, Result.failure on error or timeout.

Parameters

timeoutMillis

Maximum time to wait for library loading in milliseconds (default: 10 seconds)