Skip to content

introduce simple CallbackHandle

Florian Fischer requested to merge aj46ezos/emper:cancel-callbacks-simple into master

A CallbackHandle is used to cancel a previosuly submitted future with set callback without keeping the future object around.

A CallbackHandle remembers the callback pointer and the IoContext where the callback was submitted to submit a cancel operation for the pointer on the same IoContext.

A CallbackHandle can be obtained by calling Future::submitAndGetCallbackHandle().

Edited by Florian Fischer

Merge request reports