From 4c716cef756f619eba7f3d168b9ddcf143e65765 Mon Sep 17 00:00:00 2001 From: cosineblast <55855728+cosineblast@users.noreply.github.com> Date: Sat, 22 Mar 2025 23:25:27 -0300 Subject: [PATCH] Improve job send documentation It now mentions job id 0 is the root nushell job --- crates/nu-command/src/experimental/job_send.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/experimental/job_send.rs b/crates/nu-command/src/experimental/job_send.rs index b063112b27..212a13d070 100644 --- a/crates/nu-command/src/experimental/job_send.rs +++ b/crates/nu-command/src/experimental/job_send.rs @@ -17,7 +17,8 @@ impl Command for JobSend { r#" This command sends a message to a background job, which can then read sent messages in a first-in-first-out fashion with `job recv`. When it does so, it may additionally specify a numeric filter tag, -in which case it will only read messages sent with the exact same filter tag. +in which case it will only read messages sent with the exact same filter tag. +In particular, the id 0 refers to the main/initial nushell thread. A message can be any nushell value, and streams are always collected before being sent.