Open mischnic opened 6 years ago
We cannot let libui
call uiQuit alone, because we have to call our stopLoop method instead (it call uiQuit after it had cleaned up other things).
So we can implement the same semantic, but always return 0. Also, we'll have to implement this on JS side, because we also have to unpatch global timers functions.
Should return the cb's return value, currently: https://github.com/parro-it/libui-node/blob/df1eefdd71d41356e9eaefc1d312d32c3739c861/src/Ui.cc#L6-L10
How it's used by libui (pseudocode):