new Fiber
fun newFiber( resultType: A_Type, runtime: AvailRuntime, textInterface: TextInterface, priority: Int, setup: A_Fiber.() -> Unit = { }, nameSupplier: () -> A_String): A_Fiber
Content copied to clipboard
Construct an unstartedfiber with the specified result type and initial priority.
Return
The new fiber.
Parameters
result Type
The expected result type.
runtime
The AvailRuntime that will eventually be given the fiber to run.
text Interface
The TextInterface for providing console I/O in this fiber.
priority
The initial priority.
setup
A function to run against the fiber before scheduling it. The function execution happens before any debugger hooks run.