run
open fun run(stopScreen: Runnable, discardGui: Runnable, releaseDevice: Runnable, closeVanilla: Runnable)(source)
Stops callbacks, discards unconsumed GUI work, releases the device, and always attempts vanilla shutdown.
Parameters
stopScreen
terminal screen cleanup, including input cancellation and source detachment.
discardGui
queue-discard operation that must complete before native resource release.
releaseDevice
terminal native completion and resource cleanup.
closeVanilla
original platform shutdown, always attempted.
Throws
preserving an original platform failure, or the first cleanup failure when the platform succeeds.