Closed pavel-kirienko closed 3 months ago
Notes:
None
schedule.Callback::Handle
-> protected SingleThreadedExecutor::CallbackHanlde
. callback.cancel()
(or cancelSchedule
| unschedule
, TBD) method - callback will remain fully functional but just in a dormant/unscheduled state, ready to be resheduled.executor.scheduleCallback(callback, ...)
-> callback.schedule(...)
move will eliminate another point of failure which is currently described in docs as "...must be used only with the same executor...".reset()
callback (the one which had released all the resources, function and reference to its executor) should assert. As an alternative to the assert, research possibility to have bool
(non-discardable? TBD) return value from the .schedule
method (probably not for the .cancel
).Closing as fixed by PR #376
_Originally posted by @pavel-kirienko in https://github.com/OpenCyphal-Garage/libcyphal/pull/371#discussion_r1704753104_