Is there a way to cleanly create a promise that resolves after left mouse up or down?

后端 未结 0 1967
野趣味
野趣味 2021-01-21 09:41

In my client code, I have

const whatMouseDid = await mouseDoesSomething()

with the latter function looking like:

async mouseDoesSo         


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