[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)

 

posted @ 2026-01-23 14:09  Zhentiw  阅读(2)  评论(0)    收藏  举报