The main function of the application, which will be passed the command-line
arguments to the program and has to return an IO
with the errors fully handled.
This determines the maximum number of resumptions placed on the stack before a fiber is shifted over to a new thread to prevent stack overflow.
This determines the maximum number of resumptions placed on the stack before a fiber is shifted over to a new thread to prevent stack overflow.
Determines the maximum number of operations executed by a fiber before yielding to other fibers.
Determines the maximum number of operations executed by a fiber before yielding to other fibers.
FIXME: Replace this entirely with the new scheme.
The default handler for unhandled exceptions in the main fiber, and any fibers it forks that recursively inherit the handler.
The default handler for unhandled exceptions in the main fiber, and any fibers it forks that recursively inherit the handler.
The Scala main function, intended to be called only by the Scala runtime.
Utility function to avoid catching truly fatal exceptions.
Utility function to avoid catching truly fatal exceptions. Do not allocate memory here since this would defeat the point of checking for OOME.
The main thread pool used for executing fibers.
The main thread pool used for executing fibers.
Effectfully and synchronously interprets an IO[E, A]
, either throwing an
error, running forever, or producing an A
.
Effectfully and synchronously interprets an IO[E, A]
, either throwing an
error, running forever, or producing an A
.
Effectfully interprets an IO
, blocking if necessary to obtain the result.
Effectfully interprets an IO
, blocking if necessary to obtain the result.
The entry point for a purely-functional application on the JVM.