Concurrent Virtualmin Domain creation

We are using Virtulamin API to create websites on the fly, after a user pays for the service.

Would like to know what is the intended behavior when multiple concurrent calls are made to the create_domain API function.

Virtualmin should work fine if multiple domains are created at the same time - we have locking in the code to prevent file corruption or creation of duplicate domains. In practice this may mean that one domain has to complete creation before the other starts, but as a user of the API this should be invisible…