def creating_schema_and_index(self, models, func):
waiting_models = []<EOL>self.base_thread.do_with_submit(func, models, waiting_models, threads=self.threads)<EOL>if waiting_models:<EOL><INDENT>print("<STR_LIT>")<EOL>self.creating_schema_and_index(waiting_models, func)<EOL><DEDENT>
Executes given functions with given models.

Args:
    models: models to execute
    func: function name to execute

Returns: