0
只要向「ContinueWith」回調添加取消標記,任務就會失去它的協議,因此.Result會生成編譯錯誤。這是一個與Firebase的錯誤?Firebase GetValueAsync with CancellationToken C#(Unity)
reference.Child(string.Format("friendsLeaderboard/{0}/{1}", auth.CurrentUser.UserId, seed))
.OrderByChild("time")
.LimitToFirst(10).GetValueAsync().ContinueWith(task => {
if (task.IsFaulted) {
} else if (task.IsCompleted) {
var snapshot = task.Result;
}
}, token);
能否請您詳細闡述如何* *和*爲什麼*這解決了有機磷農藥的問題? –