在Firebase节点客户端中,ref.off是一个异步函数吗?

In the Firebase node client, is ref.off an asynchronous function?

var ref = new Firebase('somefirebaseinstace.io/abc');

ref.off('value');

ref.off上面的一个异步函数吗?文档对此不是很清楚。 (https://www.firebase.com/docs/web/api/query/off.html).

没有。 onoff 本身都不是异步的。您传递给 on 的回调被异步调用(并且可能会重复调用)。但是由于您没有指定 off 的回调,因此那里没有任何异步发生的事情。