RenderAsync(Tile, IRenderSurface, CancellationToken) Method

Definition

Assembly Broadside.Viewer.dll

Renders a tile and presents it to surface, unless cancellationToken is cancelled first.

Task RenderAsync(Tile tile, IRenderSurface surface, CancellationToken cancellationToken)

Parameters

surface
IRenderSurface

Where the finished tile goes, on the caller's context.

cancellationToken
CancellationToken

Stops the render; the tile is then never presented.

Returns

Task
A task that completes once the tile is presented, or fails with . Completing without presenting gives the tile back: the scheduler starts it again, and draws it itself when CanRender(in Tile) then declines it (a renderer that stopped working).