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

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


Vocabulary
destructors

Inputs
seqa sequence


Outputs
None

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