locked method

AuthStorage locked()

locked implementation

wrap an AuthStorage with lock to enable concurrency support.

NOTE: standard (or maybe custom) implementations only need to be wrapped with lock.

it should be wrapped first with lock then status.

Implementation

AuthStorage locked() => AuthStorageLockedImpl(this);