Exit
eff Exit
SourceAn effect used to exit the JVM.
Operations
def exit(exitCode: Int32): Void
SourceImmediately exits the JVM with the specified exitCode
.
Definitions
def handle(f: a -> b \ ef): a -> b \ (ef - Exit) + Sys + IO
SourceHandles the Exit
effect of the given function f
.
In other words, re-interprets the Exit
effect using the Sys
effect.
Note: The returned function can still return normally if exit
is never called by f
.
def runWithIO(f: Unit -> a \ ef): a \ (ef - Exit) + Sys + IO
SourceRuns the Exit
effect of the given function f
.
In other words, re-interprets the Exit
effect using the Sys
effect.
Note: This function can still return normally if exit
is never called by f
.