Safe Haskell | None |
---|
This module defines a simple Neuron
which just fails (throws a DissolvingException
) in grow
ing phase. It can be used to test
error recovery and cleanup in grow
ing phase or early stages of live
ing phase in other Neuron
s by using something like:
_ <- (growNeuron :: NerveNone FailNeuron) (\o -> o { delay = 10000000 })
somewhere among (or after) growNeuron
calls for other Neuron
s in Incubation
.
- data FailNeuron
- type FailFromImpulse = NeuronFromImpulse FailNeuron
- type FailForImpulse = NeuronForImpulse FailNeuron
- type FailOptions = NeuronOptions FailNeuron
Documentation
data FailNeuron Source
type FailFromImpulse = NeuronFromImpulse FailNeuronSource
Impulse
s from FailNeuron
. This Neuron
does not define any Impulse
s it would send, NoImpulse
.
type FailForImpulse = NeuronForImpulse FailNeuronSource
Impulse
s for FailNeuron
. This Neuron
does not define any Impulse
s it would receive, NoImpulse
.
type FailOptions = NeuronOptions FailNeuronSource
Options for FailNeuron
. This option is defined: