dispose-each ( seq -- )
Factor handbook > The language > Deterministic resource disposal > Using destructors

Prev:with-disposal ( object quot -- )
Next:with-destructors ( quot -- )


Vocabulary
destructors

Inputs and outputs
seqa sequence


Word description
Attempts to dispose of each element of a sequence and collects all of the errors into a sequence. If any errors are thrown during disposal, the last error is rethrown after all objects have been disposed.

Definition