JS обещайте функцию
return new Promise((resolve, reject) => {});
Tough Thrush
return new Promise((resolve, reject) => {});