def _restart():
    if _restart_cb:
        # https://github.com/formwork-io/lazarus/issues/2
        if _restart_cb() is not None:
            # restart cancelled
            return True

    def down_watchdog():
        _observer.stop()
        _observer.join()

        if _close_fds:
            # close all fds...
            _util.close_fds()

        # declare a mulligan ;)
        if _restart_func:
            _restart_func()
            _deactivate()
        else:
            _util.do_over()

    _util.defer(down_watchdog)
    return False
modict() -> new empty modict instance.
dataset/ETHPy150Open formwork-io/lazarus/lazarus/__init__.py/_restart--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/aid/odicting.py/modict.__init__