ferroui-system 0.3.0

The parts of the .NET base class library that FerroUI and its reusable libraries share: thread-local variables for every target, events, property and collection change notification, cancellation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! `System.IProgress<T>`.

/// A receiver of progress updates (`IProgress<T>`): an operation reports its progress through it
/// while it runs.
///
/// The `Progress<T>` class of .NET, which posts each report to the synchronization context it was
/// made on, is not ported: the reactive libraries implement the trait with their own types
/// (`ObserverExt::to_progress` of `ferroui-reactive`).
pub trait IProgress<T> {
    /// Reports a progress update (`Report`).
    fn report(&self, value: T);
}