From 88a8e2c1dfa612905a898268cdf5ff5500947e6b Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 4 Jun 2023 14:05:37 -0500 Subject: [PATCH] Define *task-id* since it is part of the event-loop runtime. --- src/boot/boot.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 4046bf4c..18e8ba54 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -1196,7 +1196,6 @@ (def kw (keyword prefix (slice alias 1 -2))) ~(def ,alias :dyn ,;more ,kw)) - (defn has-key? "Check if a data structure `ds` contains the key `key`." [ds key] @@ -1215,6 +1214,7 @@ (defdyn *debug* "Enables a built in debugger on errors and other useful features for debugging in a repl.") (defdyn *exit* "When set, will cause the current context to complete. Can be set to exit from repl (or file), for example.") (defdyn *exit-value* "Set the return value from `run-context` upon an exit. By default, `run-context` will return nil.") +(defdyn *task-id* "When spawning a thread or fiber, the task-id can be assigned for concurrecny control.") (defdyn *macro-form* "Inside a macro, is bound to the source form that invoked the macro")