# AsyncLazy Constructor

## Overloads

| [AsyncLazy(Func<Task<T>>)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.CloudNative.Jwt.AsyncLazy-1.-ctor.htm#PIX_Services_CloudNative_Jwt_AsyncLazy_1__ctor_System_Func_System_Threading_Tasks_Task__0___) |  | Initializes a new instance of the [AsyncLazy<T>](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.CloudNative.Jwt.AsyncLazy-1.htm) class. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.CloudNative.Jwt.AsyncLazy-1.-ctor.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.CloudNative.Jwt.AsyncLazy-1.-ctor.htm)

## AsyncLazy(Func&lt;Task&lt;T&gt;&gt;)

Initializes a new instance of the [AsyncLazy<T>](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.CloudNative.Jwt.AsyncLazy-1.htm) class.

### Declaration

```

          public AsyncLazy(Func<Task<T>> factory)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Func&lt;System.Threading.Tasks.Task&lt;T&gt;&gt; | factory | The asynchronous delegate that is invoked on a background thread to produce the value when it is needed. |