我希望将任意数量的promises添加到一个数组中,并在某个时刻依次解析它们。快速伪快速代码将是(不会沉迷于promises是如何按顺序调用的): var someArray: [Promise<Bool>] = [first, second, third, fourth, ..that links to the next element in the array using .then
} 我遇到的问题是,甚至在我使用firstly之前,someArray中的所有承诺就已经
但不知何故,我想让这些同步函数同时异步,并等待它们到芬兰,以便加快速度。这必须发生在同步函数内部。但我的理解是,这在javascript中是不起作用的,但我想听听你们有什么要说的。因此,我的尝试是将所有这些同步请求添加到异步promises中,然后执行Promise.all调用。this, because its script in other files that will execute if i wait like this */我知道.then将在所有解析完成时执行