我正在Xamarin iOS应用程序中编写一些基本的Firebase代码,并且在TaskCompletionSource中遇到了典型的死锁情况。public Task<string> GetUsers() var tcs = new TaskCompletionSource<string>();
_instance.GetChild
Task<StatePropertyEx> RequestStateForEntity(EntityKey entity, string propName) var tcs = new TaskCompletionSource此时,我的代码(未显示)查找存储的TaskCompletionSource项,设置结果并返回它。