mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-12-14 08:50:23 +00:00
Deserialization fix
This commit is contained in:
@@ -53,10 +53,10 @@ public class AsyncBag<T> : AsyncReply, IAsyncBag
|
||||
//if (!sealedBag && !resultReady)
|
||||
// throw new Exception("Not sealed");
|
||||
|
||||
Timeout(6000, () =>
|
||||
{
|
||||
Console.WriteLine("Timeout " + count + this.Result);
|
||||
});
|
||||
//Timeout(6000, () =>
|
||||
//{
|
||||
//Console.WriteLine("Timeout " + count + this.Result);
|
||||
//});
|
||||
|
||||
base.Then(new Action<object>(o => callback((T[])o)));
|
||||
return this;
|
||||
|
||||
@@ -73,6 +73,8 @@ public class AsyncReply
|
||||
|
||||
public Exception Exception => exception;
|
||||
|
||||
public static AsyncReply<T> FromResult<T>(T result) => new AsyncReply<T>(result);
|
||||
|
||||
public object Wait()
|
||||
{
|
||||
if (resultReady)
|
||||
|
||||
@@ -69,6 +69,7 @@ public class AsyncReply<T> : AsyncReply
|
||||
|
||||
}
|
||||
|
||||
|
||||
public AsyncReply()
|
||||
: base()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user