On Saturday, April 25, 2020 at 1:53:28 AM UTC-4, Brian Candler wrote:
>
> On Saturday, 25 April 2020 06:35:22 UTC+1, T L wrote:
>>
>> Why is each of the finalizers called twice?
>>
>
>
> Isn't it just printed once in main and once in finalizer?
> https://play.golang.org/p/7aY9NA1AFNa
>
>
Aha, I'm
On Saturday, 25 April 2020 06:35:22 UTC+1, T L wrote:
>
> Why is each of the finalizers called twice?
>
Isn't it just printed once in main and once in finalizer?
https://play.golang.org/p/7aY9NA1AFNa
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" gro
With time.Sleep, it always prints:
> 31
> 37
> 47
> 47
> 37
> 31
>
Why is each of the finalizers called twice?
On Saturday, April 25, 2020 at 1:08:43 AM UTC-4, Ian Lance Taylor wrote:
>
> On Fri, Apr 24, 2020 at 9:30 PM T L >
> wrote:
> >
> > The following program might print:
> >
> >> 31
On Fri, Apr 24, 2020 at 9:30 PM T L wrote:
>
> The following program might print:
>
>> 31
>> 37
>> 47
>> 47
>> 37
>> 31
>
>
> or
>
>> 31
>> 37
>> 47
>> 47
>
>
> but with the highest possibility to print
>
>> 31
>> 37
>> 47
>
>
> Is not normal?
>
>
> package main
>
> import (
> "fmt"
> "mat