mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Fix #571 - fiber/status and fiber/new docstrings.
This commit is contained in:
parent
3883460202
commit
874cc79443
@ -607,33 +607,33 @@ static const JanetReg fiber_cfuns[] = {
|
|||||||
"take a set of signals to block from the current parent fiber "
|
"take a set of signals to block from the current parent fiber "
|
||||||
"when called. The mask is specified as a keyword where each character "
|
"when called. The mask is specified as a keyword where each character "
|
||||||
"is used to indicate a signal to block. The default sigmask is :y. "
|
"is used to indicate a signal to block. The default sigmask is :y. "
|
||||||
"For example, \n\n"
|
"For example,\n\n"
|
||||||
"\t(fiber/new myfun :e123)\n\n"
|
" (fiber/new myfun :e123)\n\n"
|
||||||
"blocks error signals and user signals 1, 2 and 3. The signals are "
|
"blocks error signals and user signals 1, 2 and 3. The signals are "
|
||||||
"as follows: \n\n"
|
"as follows:\n\n"
|
||||||
"\ta - block all signals\n"
|
"* :a - block all signals\n"
|
||||||
"\td - block debug signals\n"
|
"* :d - block debug signals\n"
|
||||||
"\te - block error signals\n"
|
"* :e - block error signals\n"
|
||||||
"\tt - block termination signals: error + user[0-4]\n"
|
"* :t - block termination signals: error + user[0-4]\n"
|
||||||
"\tu - block user signals\n"
|
"* :u - block user signals\n"
|
||||||
"\ty - block yield signals\n"
|
"* :y - block yield signals\n"
|
||||||
"\t0-9 - block a specific user signal\n\n"
|
"* :0-9 - block a specific user signal\n\n"
|
||||||
"The sigmask argument also can take environment flags. If any mutually "
|
"The sigmask argument also can take environment flags. If any mutually "
|
||||||
"exclusive flags are present, the last flag takes precedence.\n\n"
|
"exclusive flags are present, the last flag takes precedence.\n\n"
|
||||||
"\ti - inherit the environment from the current fiber\n"
|
"* :i - inherit the environment from the current fiber\n"
|
||||||
"\tp - the environment table's prototype is the current environment table")
|
"* :p - the environment table's prototype is the current environment table")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fiber/status", cfun_fiber_status,
|
"fiber/status", cfun_fiber_status,
|
||||||
JDOC("(fiber/status fib)\n\n"
|
JDOC("(fiber/status fib)\n\n"
|
||||||
"Get the status of a fiber. The status will be one of:\n\n"
|
"Get the status of a fiber. The status will be one of:\n\n"
|
||||||
"\t:dead - the fiber has finished\n"
|
"* :dead - the fiber has finished\n"
|
||||||
"\t:error - the fiber has errored out\n"
|
"* :error - the fiber has errored out\n"
|
||||||
"\t:debug - the fiber is suspended in debug mode\n"
|
"* :debug - the fiber is suspended in debug mode\n"
|
||||||
"\t:pending - the fiber has been yielded\n"
|
"* :pending - the fiber has been yielded\n"
|
||||||
"\t:user(0-9) - the fiber is suspended by a user signal\n"
|
"* :user(0-9) - the fiber is suspended by a user signal\n"
|
||||||
"\t:alive - the fiber is currently running and cannot be resumed\n"
|
"* :alive - the fiber is currently running and cannot be resumed\n"
|
||||||
"\t:new - the fiber has just been created and not yet run")
|
"* :new - the fiber has just been created and not yet run")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fiber/root", cfun_fiber_root,
|
"fiber/root", cfun_fiber_root,
|
||||||
|
Loading…
Reference in New Issue
Block a user