Data pipeline refactoring

This commit is contained in:
Michael Schimmel
2025-12-14 17:47:07 +01:00
parent f0567a32a1
commit 3c7723f3d2
7 changed files with 20 additions and 32 deletions
+2 -4
View File
@@ -2,8 +2,6 @@ unit Myc.Data.Pipeline;
interface
{$M+}
uses
Myc.Signals,
Myc.Mutable,
@@ -13,12 +11,12 @@ type
TTag = Pointer;
// A generic interface for components that consume data of type T.
IConsumer<T> = interface
IConsumer<T> = interface(IInvokable)
function Consume(const Value: T): TState;
end;
// A producer generates data and distributes it to linked consumers.
IProducer<T> = interface
IProducer<T> = interface(IInvokable)
function Link(const Consumer: IConsumer<T>): TTag;
procedure Unlink(Tag: TTag);
end;