📜  停止异步函数 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:21.283000             🧑  作者: Mango

代码示例1
Unfortunately, there is no way to stop an asynchronous running method without 
using 'state' var. Once called, method cannot be stopped, even using very 
'low-level' JS methods.

For 'state' var, please check Jared Smith's answer.