Table of Contents

Interface IBrowserPoolManager

Namespace
CobaltPdf.Infrastructure.Pooling
Assembly
CobaltPdf.dll

Defines the contract for a browser pool manager.

public interface IBrowserPoolManager

Methods

GetBrowserAsync(CancellationToken)

Asynchronously acquires a browser lease from the pool.

Task<IBrowserLease> GetBrowserAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional token to cancel the acquire operation.

Returns

Task<IBrowserLease>

A task that represents the asynchronous operation. The task result contains an IBrowserLease.