Re: [go-nuts] Is golang.org/x/text/message's Printer thread safe?

2024-04-22 Thread Xiangrong Fang
Thanks for the tip!



Jan Mercl <0xj...@gmail.com> 于2024年4月22日周一 17:38写道:

> On Mon, Apr 22, 2024 at 11:23 AM Xiangrong Fang  wrote:
>
> > Is golang.org/x/text/message's *message.Printer safe to use in
> goroutines?
>
> I don't know, but usually things are safe for concurrent use by
> multiple goroutines only when explicitly documented as such.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAP93jB1Zquvb5MErPtpXm%3DJ%3DJDxvVb-cY2ekzmg744yfgpgBBg%40mail.gmail.com.


Re: [go-nuts] Is golang.org/x/text/message's Printer thread safe?

2024-04-22 Thread Jan Mercl
On Mon, Apr 22, 2024 at 11:23 AM Xiangrong Fang  wrote:

> Is golang.org/x/text/message's *message.Printer safe to use in goroutines?

I don't know, but usually things are safe for concurrent use by
multiple goroutines only when explicitly documented as such.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-X%2B88yorR_bnRLkzb6Ys_Ne3nA-aw_PvdNrR_U10YC_oA%40mail.gmail.com.