Pmap timeout

I am using pmap for multiprocessing on a single machine. Sometimes a worker hangs and never returns. Is it possible to set a timeout? Alternatively, how can I work around this problem?

I see there is JULIA_WORKER_TIMEOUT which has a relevant-sounding name but seems to be for something else.