asFinalizer method

Conveyor<F, O> asFinalizer()

Implementation

Conveyor<F, O> asFinalizer() =>
    interpret((h, t) => produce(h, t.asFinalizer()),
        (req, recv) => consume(req, (ea) => ea == left(Kill) ? asFinalizer() : recv(ea)),
        halt);