FakeRefreshLock — @gj-kit/expo-auth
A public type from @gj-kit/expo-auth/testing. The signature below is taken directly from the 0.1.1 release declaration.
Verified import example
Section titled “Verified import example”import { FakeRefreshLock } from '@gj-kit/expo-auth/testing';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** Serialization-observing {@link RefreshLock}; `hold`/`releaseNext` reproduce H2b lock-wait races. */type FakeRefreshLock = RefreshLock & { /** Highest number of concurrently held critical sections observed (H5 asserts === 1). */ readonly maxObservedConcurrency: number; /** After `hold()`, each `acquire` waits at its grant point until `releaseNext()` — the "rotation while waiting for the lock" scenario. */ hold(): void; /** Release one held acquirer (or bank a credit if none is waiting yet). */ releaseNext(): void;};This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-auth - Version:
0.1.1 - Public entry:
./testing - Source: GitHub