pub struct MultiFuse<T: Clone> { /* private fields */ }
Expand description
A reusable fuse. It just grows back.
This MultiFuse
can be lit multiple times, and will explode all
MultiBomb<T>
instances associated with it.
It is not necessary, but may be useful for your application, to wait for
all of the MultiBomb
s to extinguish before lighting the MultiFuse
again.
Slow MultiBomb
s may be in an exploded state again immediately after
they have finished processing data, if the MultiFuse
was lit again in between processing.
Like one-time use Fuse
s, MultiFuse
s cannot be cloned, but may be moved between threads.
Dropping
Currently, MultiBomb
s do not have internal logic to detect MultiFuse
drops.
If the MultiFuse
is dropped without any additional logic, all active MultiBomb
s will wait
indefinitely to explode.