[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] article: Structured concurrency and Lua
- From: bil til <biltil52@...>
- Date: Tue, 20 Sep 2022 19:43:42 +0200
One very basic question, I hope not TOO basic.
Why do you use this do...end block inside this async_main function?
As I see it, this do...end practically IS the complete function code
of async_main (except the print at the end, but this does not use any
variables).
So for THIS basic example, the do...end is not important, is this correct?
You use it only for the next steps, where you would like to add
further more complicated coding into this async_main function and you
want to "protect" the local variables?
Am Fr., 9. Sept. 2022 um 16:58 Uhr schrieb John Belmonte <john@neggie.net>:
>
> I'm sharing a draft article "Structured concurrency and Lua (part 1)".
>
> https://gist.github.com/belm0/4c6d11f47ccd31a231cde04616d6bb22