newLoaderFiber

fun newLoaderFiber(resultType: A_Type, loader: AvailLoader, nameSupplier: () -> A_String): A_Fiber

Construct an unstarted fiber with the specified result type and AvailLoader. The priority is initially set to loaderPriority.

Return

The new fiber.

Parameters

resultType

The expected result type.

loader
nameSupplier

A supplier that produces an Avail string to name this fiber on demand. Please don't run Avail code to do so, since if this is evaluated during fiber execution it will cause the current Thread's execution to block, potentially starving the execution pool.