exit:insert-can?-callback in Framework Functions
(exit:insert-can?-callback-> (-> void?)callback)
callback: (-> boolean?)Use this function to add a callback that determines if an attempted exit can proceed. This callback should not clean up any state, since another callback may veto the exit. Use
exit:insert-on-callbackfor callbacks that clean up state.