DEV Community

Discussion on: Timeout with a third party library or another server - How to handle?

Collapse
 
srleyva profile image
Stephen Leyva (He/Him) • Edited

I’ve seen process forking and then utilizing a Linux signal alarm to enforce a timeout on the child process. Then what ever third party function you want to run can be the forked process. This could be a bad idea depending on things like mutations and state.