mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 13:03:13 +00:00
added Wait
This commit is contained in:
@ -51,6 +51,11 @@ namespace Esyur.Core
|
||||
return new AsyncAwaiter<object[]>(this);
|
||||
}
|
||||
|
||||
public new object[] Wait()
|
||||
{
|
||||
return (object[])base.Wait();
|
||||
}
|
||||
|
||||
|
||||
public void Seal()
|
||||
{
|
||||
|
@ -56,6 +56,11 @@ namespace Esyur.Core
|
||||
return new AsyncAwaiter<T[]>(this);
|
||||
}
|
||||
|
||||
public new T[] Wait()
|
||||
{
|
||||
return base.Wait().Select(x => (T)x).ToArray();
|
||||
}
|
||||
|
||||
public AsyncBag()
|
||||
{
|
||||
|
||||
|
@ -72,7 +72,6 @@ namespace Esyur.Core
|
||||
|
||||
public object Wait()
|
||||
{
|
||||
|
||||
if (resultReady)
|
||||
return result;
|
||||
|
||||
|
@ -75,7 +75,10 @@ namespace Esyur.Core
|
||||
return new AsyncAwaiter<T>(this);
|
||||
}
|
||||
|
||||
|
||||
public new T Wait()
|
||||
{
|
||||
return (T)base.Wait();
|
||||
}
|
||||
/*
|
||||
protected new List<Action> callbacks = new List<Action>();
|
||||
protected new object result;
|
||||
|
Reference in New Issue
Block a user