If those are the only lines in your program, the program will have exited
before the sleep in the start has actually passed. If you change the program
to:
start { sleep 1; say "done"; exit }
say "working";
sleep;
you should also see the "done".
> On 5 Jan 2021, at 14:15, Theo van den Heuvel <[email protected]> wrote:
>
> Hi gurus,
>
> The first example in the documentation on the start control flow does not
> seem to work as promised.
> Here is the code:
>
> start { sleep 1; say "done" }
> say "working";
> # working, done
>
> Both 2020.1 and the 2020.12 version under Ubuntu yield only "working". Am I
> missing something?
>
> --
> Theo van den Heuvel