AsyncLazyInitializer.Initialize(CancellationToken) Method

Definition

Executes the action given in the constructor if it has not yet been executed, or waits for it to complete if in progress from a prior call.

public void Initialize (System.Threading.CancellationToken cancellationToken = default);
member this.Initialize : System.Threading.CancellationToken -> unit
Public Sub Initialize (Optional cancellationToken As CancellationToken = Nothing)

Parameters

cancellationToken
CancellationToken

Exceptions

Any exception thrown by the action is rethrown here.

Applies to