Hey,
How can I give time to execute something, if it doesn't execute, do something else?
For example, the code tries to connect to a server, if it doesn't connect it stops the code.
How can I make it so that it tries to connect for 10 seconds, if it doesn't connect it goes on to do something else?
I saw a code doing this somewhere some time ago, but now I can't seem to find it 🙁