DeferWithProgress

Description

A utility to defer execution with progress

DeferWithProgress extends Defer by providing a way to report progress during the async operation. This is useful for long-running tasks where you want to show a progress bar or status updates.

API reference

class

DeferedComponentWithProgress

internal sealed class DeferedComponentWithProgress : IDefer

A DeferedComponent variant that reports progress (0-100%) while its real content is being prepared.

Namespace
Tesserae
Implements
IDefer

Methods

NameDescription
RefreshRefreshes the component's rendered state.
RefreshAsyncRefreshes the async.
DebounceConfigures the component to debounce.
DoNotWaitForComponentMountingBeforeRenderingConfigures the do not wait for component mounting before rendering on the component.
RenderRenders the component's root HTML element.
Method
DeferedComponentWithProgress.Refresh
public void Refresh()

Refreshes the component's rendered state.

Method
DeferedComponentWithProgress.RefreshAsync
public Task RefreshAsync()

Refreshes the async.

Method
DeferedComponentWithProgress.Debounce
Overload
Debounce(int, int)Configures the component to debounce.
Debounce(int, int, int)Configures the component to debounce.
Debounce(int, int)
public IDefer Debounce(int delayInMs, int millisecondsForLoadingMessage = 1000)

Configures the component to debounce.

Parameters

delayInMs int
millisecondsForLoadingMessage int
Debounce(int, int, int)
public IDefer Debounce(int delayInMs, int maxDelayInMs, int millisecondsForLoadingMessage = 1000)

Configures the component to debounce.

Parameters

delayInMs int
maxDelayInMs int
millisecondsForLoadingMessage int
Method
DeferedComponentWithProgress.DoNotWaitForComponentMountingBeforeRendering
public IDefer DoNotWaitForComponentMountingBeforeRendering()

Configures the do not wait for component mounting before rendering on the component.

Method
DeferedComponentWithProgress.Render
public HTMLElement Render()

Renders the component's root HTML element.

Samples

Basic Usage

Usage with Observables

See also

© 2026 Curiosity. All rights reserved.