4.6.32 safe_apply_with_timeout(Callback, Timeout)

-spec safe_apply_with_timeout(callback(),
                              timeout()) -> {ok, term()} |
                                            wrapped_exception() |
                                            {error,
                                             {timeout,
                                              Info}} when Info ::
                                                              list() |
                                                              undefined.

Apply a function in a separate process with a timeout.

WARNING: aborting the calling process while running this function may leave the child process running.

JavaScript license information