The Kos Data Model to wait for readiness.
A promise that resolves to the same data model when it becomes ready.
whenReady
1.0.0
If the specified data model is not found or if it has no ID.
// Wait for the 'dataModel' to become ready before using it.
const dataModel = await whenReady(dataModel);
Asynchronously waits for a Kos Data Model to become ready for use.
This utility function is used to ensure that a Kos Data Model is fully loaded and ready to be accessed before performing any operations on it.