Set a callback for execution when all parsing and processing has completed Due to a bug in c++11, it is not possible to overload on std::function (fixed in c++14 and backported to c++11 on newer compilers). Use capture by reference to get a pointer to App if needed.
| 4840 | /// and backported to c++11 on newer compilers). Use capture by reference |
| 4841 | /// to get a pointer to App if needed. |
| 4842 | App *callback(std::function<void()> app_callback) { |
| 4843 | if (immediate_callback_) { |
| 4844 | parse_complete_callback_ = std::move(app_callback); |
| 4845 | } else { |
| 4846 | final_callback_ = std::move(app_callback); |
| 4847 | } |
| 4848 | return this; |
| 4849 | } |
| 4850 | |
| 4851 | /// Set a callback for execution when all parsing and processing has completed |
| 4852 | /// aliased as callback |
no outgoing calls
no test coverage detected