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