Package avail. interpreter. primitive. fibers
Types
Primitive: If the fiber has already terminated, then answer right away; otherwise, record the current fiber as a joiner of the specified fiber, and attempt to park.
Primitive: Is the current able to reject an ongoing parse?
Primitive: Create a fiber type whose result type is the specified type.
Primitive: Answer the currently running fiber.
Primitive: Answer the name of the specified fiber.
Primitive: Answer the result of the specified fiber.
Primitive: Answer the result type of the specified fiber type.
Primitive: Ask another fiber what it's doing. Fail if the fiber's continuation chain is empty (i.e., it is terminated).
Primitive: Get the priority of a fiber.
Primitive: Has the specified fiber produced a result yet?
Primitive: Has the specified fiberterminated for some reason?
Primitive: Has termination been requested for the current fiber? Answer the current value of the appropriate interrupt flag and simultaneously clear it.
Primitive: Attempt to acquire the permit associated with the currentfiber. If the permit is available, then consume it and return immediately. If the permit is not available, then park the current fiber. A fiber suspended in this fashion may be resumed only by calling P_UnparkFiber. A newly unparked fiber should always recheck the basis for its having parked, to see if it should park again. Low-level synchronization mechanisms may require the ability to spuriously unpark in order to ensure correctness.
Primitive: Set the name of the specified fiber.
Primitive: Set the priority of a fiber.
Primitive: Terminate the current fiber.
Primitive: Unpark the specified fiber. If the permit associated with the fiber is available, then simply continue. If the permit is not available, then restore the permit and schedule resumption of the fiber. A newly unparked fiber should always recheck the basis for its having parked, to see if it should park again. Low-level synchronization mechanisms may require the ability to spuriously unpark in order to ensure correctness.