From dc188b906f5249f67188169cded4fd53b48885b7 Mon Sep 17 00:00:00 2001 From: Satvik Beri Date: Tue, 30 Jul 2024 11:40:56 -0700 Subject: [PATCH] Update statement about equivalence --- doc/src/manual/asynchronous-programming.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/manual/asynchronous-programming.md b/doc/src/manual/asynchronous-programming.md index 3624bb6b0c5b3..d1d095c48b2ff 100644 --- a/doc/src/manual/asynchronous-programming.md +++ b/doc/src/manual/asynchronous-programming.md @@ -65,7 +65,7 @@ to finish before proceeding. It is common to want to create a task and schedule it right away, so the macro [`Threads.@spawn`](@ref) is provided for that purpose --- `Threads.@spawn x` is -equivalent to `schedule(@task x)`. +equivalent to `task = @task x; task.sticky = false; schedule(task)`. ## Communicating with Channels