-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add information about timeout #33
Comments
Thanks! @rkaminsk Can you answer this. I think then implementing Duration should be easy. |
Python API says it's seconds https://potassco.org/clingo/python-api/current/ |
Yes, it is seconds. |
Thanks for the quick response! The Duration impl should be easy. I'm willing to implement that. I was mostly concerned about the api change, but if you're okay with that, there should be no drawbacks. |
That would be awesome. Momentarily the API is far from stable. I'm looking forward to your PR! |
This is quite unrelated, but I encountered another 'problem' where I tried to use wait without specifying
Am I right in assuming, that pub fn wait(&mut self, timeout: Duration) -> Result<bool, ClingoError> I wouldn't know how to catch the error, though.. One simple solution would be to add a member Let me know, if that's even accurate and what you think about such a change. |
I'm trying to use the
wait
function onSolveHandle
, but can't figure out what unit thetimeout
is expected to have. Additional information about the parameter might be nice. Alternatively,timeout
's type could be changed tostd::time::Duration
, but that would mean an api change.clingo-rs/src/lib.rs
Lines 4783 to 4795 in 7cd4f8b
Thanks!
(With some information, I could assemble a PR for either solution, if that helps)
The text was updated successfully, but these errors were encountered: