func dispose()

in MobiusCore/Source/EffectHandlers/EffectExecutor.swift [65:79]


    func dispose() {
        lock.synchronized {
            // Dispose any effects currently being handled. We also need to `end` their callbacks to remove the
            // references we are keeping to them.
            handlingEffects.values
                .forEach {
                    $0.disposable.dispose()
                    $0.callback.end()
                }

            // Restore the state of this `Connectable` to its pre-connected state.
            handlingEffects = [:]
            output = nil
        }
    }