def handle_timeouts(user_states, is_mine_fn, user_to_num_current_syncs, now):
    changes = {}  # Actual changes we need to notify people about

    for state in user_states:
        is_mine = is_mine_fn(state.user_id)

        new_state = handle_timeout(state, is_mine, user_to_num_current_syncs, now)
        if new_state:
            changes[state.user_id] = new_state

    return changes.values()
:param mail_r: Redirect to delete
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/presence.py/handle_timeouts--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/dns/drivers/pointdns.py/PointDNSDriver.ex_delete_redirect