JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

fiber/status

core-api


    cfunction
    src/core/fiber.c on line 585, column 1

    (fiber/status fib)

    Get the status of a fiber. The status will be one of:

    * :dead - the fiber has finished
    * :error - the fiber has errored out
    * :debug - the fiber is suspended in debug mode
    * :pending - the fiber has been yielded
    * :user(0-7) - the fiber is suspended by a user signal
    * :interrupted - the fiber was interrupted
    * :suspended - the fiber is waiting to be resumed by the scheduler
    * :alive - the fiber is currently running and cannot be resumed
    * :new - the fiber has just been created and not yet run


0 examplesSign in to add an example
Loading...