Hello,
When using submit_with_args and a timeout parameter, example like this:
let submitter: Submitter<'_> = ???;
let args = SubmitArgs::new().timespec(&(std::time::Duration::from_millis(100).into()));
let result = submitter.submit_with_args(1, &args);
What is the recommended approach for the application to determine that the timer expired?
What I observe is that the result comes back as Err(io::Error), with the "ErrorKind" set to "Uncategorized" (this variant is hidden from the docs). I can see the ETIME (62) result if I display the error as it shows Timer expired (os error 62). Clearly I don't want to be parsing the formatted error message, so I'm hoping you know a better way to check for expiry.
I could use io::Error::raw_os_error, but the type it returns is available only in nightly.
Hello,
When using
submit_with_argsand a timeout parameter, example like this:What is the recommended approach for the application to determine that the timer expired?
What I observe is that the result comes back as
Err(io::Error), with the "ErrorKind" set to "Uncategorized" (this variant is hidden from the docs). I can see the ETIME (62) result if I display the error as it showsTimer expired (os error 62). Clearly I don't want to be parsing the formatted error message, so I'm hoping you know a better way to check for expiry.I could use
io::Error::raw_os_error, but the type it returns is available only in nightly.