Extensions funcionality.
Nivaes Async is a set of utilities for handling asynchronous functions.
Proporciona metodos para acceder a una colecci�n as�ncrona.
Provides support for Lazy initialization, allowing the creation of the object with an asynchronous call.
using Nivaes;
async ValueTask<MyClass> InitMyObject()
{
....
MyClass myObject = await myService.GetObject();
return myObject;
}
async Task Main()
{
...
var lazyObject = new AsyncLazy<MyClass>(InitMyObject);
var MyObject = await lazyObject.Value;
...
}
It amacen a variable, which is generated asynchronously, over a period of time.
NuGet Package | Latest Versions |
---|---|
Nivaes.Extensions |