ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

[Javascript] using void to ignore waiting for promise

[Javascript] using void to ignore waiting for promise

When you have an async function, but your usecase doesn't need to wait for the promise to finish, instead of using await, you can use void to effectively ignores the promise.

void suggestTagsSampling(agent, createdEntry.id)

 

返回列表