You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Start a new thread that will start immediately. "
610
+
"If capacity is provided, that is how many messages can be stored in the thread's mailbox before blocking senders. "
611
+
"The capacity must be between 1 and 65535 inclusive, and defaults to 10. "
612
+
"Can optionally provide flags to the new thread - supported flags are:\n\n"
613
+
"* :h - Start a heavyweight thread. This loads the core environment by default, so may use more memory initially. Messages may compress better, though.\n\n"
614
+
"* :a - Allow sending over registered abstract types to the new thread\n\n"
615
+
"* :c - Send over cfunction information to the new thread.\n\n"
"Start a new thread that will start immediately. "
725
-
"If capacity is provided, that is how many messages can be stored in the thread's mailbox before blocking senders. "
726
-
"The capacity must be between 1 and 65535 inclusive, and defaults to 10. "
727
-
"Can optionally provide flags to the new thread - supported flags are:\n\n"
728
-
"* :h - Start a heavyweight thread. This loads the core environment by default, so may use more memory initially. Messages may compress better, though.\n\n"
729
-
"* :a - Allow sending over registered abstract types to the new thread\n\n"
730
-
"* :c - Send over cfunction information to the new thread.\n\n"
731
-
"Returns a handle to the new thread.")
732
-
},
733
-
{
734
-
"thread/send", cfun_thread_send,
735
-
JDOC("(thread/send thread msgi &opt timeout)\n\n"
736
-
"Send a message to the thread. By default, the timeout is 1 second, but an optional timeout "
737
-
"in seconds can be provided. Use math/inf for no timeout. "
738
-
"Will throw an error if there is a problem sending the message.")
739
-
},
740
-
{
741
-
"thread/receive", cfun_thread_receive,
742
-
JDOC("(thread/receive &opt timeout)\n\n"
743
-
"Get a message sent to this thread. If timeout (in seconds) is provided, an error "
744
-
"will be thrown after the timeout has elapsed but "
745
-
"no messages are received. The default timeout is 1 second, and math/inf cam be passed to "
746
-
"turn off the timeout.")
747
-
},
748
-
{
749
-
"thread/close", cfun_thread_close,
750
-
JDOC("(thread/close thread)\n\n"
751
-
"Close a thread, unblocking it and ending communication with it. Note that closing "
752
-
"a thread is idempotent and does not cancel the thread's operation. Returns nil.")
753
-
},
754
-
{
755
-
"thread/exit", cfun_thread_exit,
756
-
JDOC("(thread/exit &opt code)\n\n"
757
-
"Exit from the current thread. If no more threads are running, ends the process, but otherwise does "
0 commit comments