[Python] signal.alarm replacement in Windows [Python]

Discussão em 'Python' iniciado por Stack, Julho 8, 2025.

  1. Stack

    Stack Membro Participativo

    I have a function that occasionally hangs.

    Normally I would set an alarm, but I'm in Windows and it's unavailable.

    Is there a simple way around this, or should I just create a thread that calls time.sleep()?

    Continue reading...

Compartilhe esta Página