Path: redb-route/redb.Route/Core/IStopAwareProcessor.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Core/IStopAwareProcessor.cs
----
namespace redb.Route.Core;
///
/// A processor that holds exchanges of its own across calls (aggregation groups) and settles them when the context
/// stops: after the consumers have stopped — nothing more arrives — and before the producers stop, so what it sends on
/// still goes out.
///
internal interface IStopAwareProcessor
{
/// Completes or releases what the processor still holds.
/// The shutdown token.
Task OnConsumersStoppedAsync(CancellationToken ct);
}