Etage-0.1.8: A general data-flow framework

Control.Etage.Fail

Description

This module defines a simple Neuron which just fails (throws a DissolvingException) in growing phase. It can be used to test error recovery and cleanup in growing phase or early stages of liveing phase in other Neurons by using something like:

 _ <- (growNeuron :: NerveNone FailNeuron) (\o -> o { delay = 10000000 })

somewhere among (or after) growNeuron calls for other Neurons in Incubation.

This Neuron does not process any Impulses.

Synopsis

Documentation

type FailFromImpulse = NeuronFromImpulse FailNeuronSource

Impulses from FailNeuron. This Neuron does not define any Impulses it would send, NoImpulse.

type FailForImpulse = NeuronForImpulse FailNeuronSource

Impulses for FailNeuron. This Neuron does not define any Impulses it would receive, NoImpulse.

type FailOptions = NeuronOptions FailNeuronSource

Options for FailNeuron. This option is defined:

delay :: Int
The delay in microseconds before Neuron fails. Default is no delay.