Sets function which is called once future is resolved (always)
The function is called always, regardless on whether the future is already resolved
- Parameters
-
fn | function to call when future is resolved |
- Return values
-
true | function will be called in future |
false | function was called immediatelly, because the future was already resolved |
(you can ignore return value)
- Note
- There can be only one callback at time. Attempt to call this function twice can cause that previous function is destroyed without calling
Definition at line 647 of file future.h.