MachineRunnerIterableIterator is an object that's incorporated in machine to provide next, peek, and destroy, but also returned by the noAutoDestroy method.
The noAutoDestroy variant, unlike the original machine it comes from, doesn't have a destroy method. Users have to resort to breaking/throwing from the for-await loop to destroy it.
With local destroy introduced, users can directly destroy a noAutoDestroy copy without breaking from a for-await loop
MachineRunnerIterableIterator
is an object that's incorporated inmachine
to providenext
,peek
, anddestroy
, but also returned by thenoAutoDestroy
method.The
noAutoDestroy
variant, unlike the originalmachine
it comes from, doesn't have adestroy
method. Users have to resort tobreaking/throwing
from thefor-await
loop to destroy it.With local
destroy
introduced, users can directly destroy anoAutoDestroy
copy without breaking from afor-await
loop