Using event emitter vs asynchronous functions

前端 未结 0 1130
慢半拍i
慢半拍i 2021-01-19 12:56

I have some code as below,

const registerUser = async (user) => {
const registeredUser = await UserService.register(user);
sendWelcomeEmail(user); // async         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题