-
Notifications
You must be signed in to change notification settings - Fork 504
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
Extend IRunnable::run with a deadline #364
Comments
What if introduce |
Makes sense. But are we sure we need an interface for this instead of a simple |
IMHO both will work, I just think that interface pointer might be more light way... In both cases we still need to first check for "emptiness" (either
UNLESS!!! We will require non-empty token (either by passing @pavel-kirienko What benefits do you think will be in using |
A cancellable assumes multiple threads of execution. We should avoid requiring this. |
This is not what I meant. Here is an example of possible user-provided implementation of
And somewhere else user calls our
OR like this if we go with function:
|
@thirtytwobits Are you saying we need a different name? |
nope. I like what Serge is proposing. |
@pavel-kirienko I believe this issue is not applicable anymore. |
See #363 (comment)
This should be a deadline rather than a timeout. The clock used for the deadline tracking is described in https://github.com/OpenCyphal-Garage/libcyphal/blob/main/docs/design/readme.md#time-primitives
The text was updated successfully, but these errors were encountered: