Maybe I'm doing something wrong, but this doesn't seem right to me, and I can't find it documented anywhere (the lexical-let is because I ran that in *scratch*):
However, message is never called. Then when I run:
(async-get argh)
I get:
(error "Async process 'ag-scan-async' failed with exit code 124")
This is inconvenient, because I'm trying to use timeout to prevent a process from running for too long, and I'd like to raise an error when it times out, but since the finish-func doesn't get called until I manually do async-get, I would have to run my own timer outside of async-start-process to catch it.
Hi John,
Maybe I'm doing something wrong, but this doesn't seem right to me, and I can't find it documented anywhere (the lexical-let is because I ran that in
*scratch*
):This sleeps for 4 seconds and returns:
However,
message
is never called. Then when I run:I get:
This is inconvenient, because I'm trying to use
timeout
to prevent a process from running for too long, and I'd like to raise an error when it times out, but since the finish-func doesn't get called until I manually doasync-get
, I would have to run my own timer outside ofasync-start-process
to catch it.Thanks.