Is ImportMesh() running async?

I’m a little confused by my console output. I’m running two ImportMesh functions in a row, and their OnSuccess functions are writing output to the console out of order. This could be screwing with what I’m trying to do.

Is there a way to use a promise to await the results, or is there a better way to do this?

Update: okay yeah the two files definitely run out of order, and stuff after ImportMesh() runs before the import is done. I’ve switched to ImportMeshAsync() so that at least this behaviour is expected. Should I now wrap everything in a promise somehow?

If you want maximum control use Asset Manager | Babylon.js Documentation