Interface IBrowserPoolManager
- Namespace
- CobaltPdf.WebKit.Infrastructure.Pooling
- Assembly
- CobaltPDF.WebKit.dll
Pool manager contract. The WebKitGTK backend keeps one long-running
render.py --serve subprocess per warm slot; AcquireAsync(CancellationToken)
hands out an exclusive lease for the duration of one render.
public interface IBrowserPoolManager : IAsyncDisposable
- Inherited Members
Properties
InitializationTask
Completes when the pool has finished pre-warming MinSize workers.
Faults if any warm-up worker failed to start. Awaiting this from
startup code (see PreWarmAsync(CancellationToken)) eliminates
the cold-start cost for the first user request.
Task InitializationTask { get; }
Property Value
Options
PoolOptions Options { get; }
Property Value
Methods
AcquireAsync(CancellationToken)
Task<IBrowserLease> AcquireAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken