def advance(delay: float) -> None:
    """
    Pauses the current process for the given delay (in simulated time). The process will be resumed when the simulation
    has advanced to the moment corresponding to `now() + delay`.
    """
    if _logger is not None:
        _log(INFO, "Process", local.name, "advance", delay=delay)
    curr = Process.current()
    rsim = curr.rsim
    id_wakeup = rsim()._schedule(delay, curr.switch)  # type: ignore

    try:
        rsim()._gr.switch()                   # type: ignore
    except Interrupt:
        rsim()._cancel(id_wakeup)             # type: ignore
        raise
def advance ( delay : float ) -> None : if _logger is not None : _log ( INFO , "Process" , local . name , "advance" , delay = delay ) curr = Process . current ( ) rsim = curr . rsim id_wakeup = rsim ( ) . _schedule ( delay , curr . switch ) try : rsim ( ) . _gr . switch ( ) except Interrupt : rsim ( ) . _cancel ( id_wakeup ) raise
Pauses the current process for the given delay (in simulated time). The process will be resumed when the simulation
    has advanced to the moment corresponding to `now() + delay`.