docs(api): state that EventProcessor.Done reports cancellation as failure

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2026-11-16 13:03:13 +01:00 • committed by Guillaume Lours
parent d6b5fd62a4
commit 2167baf85f

View file

@ -125,6 +125,7 @@ type EventProcessor interface {
// On notify about (sub)task and progress processing operation
On(events ...Resource)
// Done is triggered as a Compose operation completed.
// success is true when the operation completed without error.
// success is true when the operation completed without error; it is false
// when the operation failed, including when it was cancelled (e.g. Ctrl-C).
Done(operation string, success bool)
}