Skip to main content

core.medplumclient.getinitpromise

Home > @medplum/core > MedplumClient > getInitPromise

MedplumClient.getInitPromise() method

Gets a Promise that resolves when async initialization is complete. This is particularly useful for waiting for an async ClientStorage and/or authentication to finish.

Signature:

getInitPromise(): Promise<void>;

Returns:

Promise<void>

A Promise that resolves when any async initialization of the client is finished.