create Fiber
fun createFiber(resultType: A_Type, runtime: AvailRuntime, loader: AvailLoader?, textInterface: TextInterface, priority: Int, setup: A_Fiber.() -> Unit = { }, nameSupplier: () -> A_String): A_Fiber
Construct an unstarted fiber with the specified result type, name supplier, and AvailLoader. The priority is initially set to loaderPriority.
Return
The new fiber.
Parameters
result Type
The expected result type.
runtime
The AvailRuntime that will eventually be given the fiber to run.
loader
Either an AvailLoader or null.
text Interface
The TextInterface for providing console I/O in this fiber.
priority
An Int between 0 and 255 that affects how much of the CPU time will be allocated to the fiber.
setup
A function to run against the fiber before scheduling it. The function execution happens before any debugger hooks run.