Firebase功能:调用顺序(Firebase functions: sequence of calls)
Firebase是否会串行进行异步调用?
我有两个电话,如下所述。 第二个电话可能比第一个电话早完成吗?
var p1 = admin.database().ref(path1).set(value1); var p2 = admin.database().ref(path2).set(value2); return Promise.all([p1, p2]);Does Firebase proceed async calls in series or not?
I have two calls as mentioned below. Is it possible that 2nd call going to finish early than 1st one?
var p1 = admin.database().ref(path1).set(value1); var p2 = admin.database().ref(path2).set(value2); return Promise.all([p1, p2]);最满意答案
对于实时数据库,不,对于您显示的情况不可能。 这些操作将按照它们执行的顺序完成。
For Realtime Database, no, it is not possible for the case you've shown. The operations will complete in the order they were executed.
更多推荐
发布评论