我正在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项,设置结果并返回它。
我在TaskCompletionSource中使用了这个类,但是这个类是泛型的,它返回一个像Task<bool>这样的对象,而我想要的只是一个没有返回值的普通Task。windowTitle) var dialogParameters = new DialogParameters { Content = message };
var tcs = new TaskCompletionSource