Go bytes.Buffer线程安全吗? [英] Is the Go bytes.Buffer thread-safe?

查看:199
本文介绍了Go bytes.Buffer线程安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Go编程语言中, bytes.Buffer 线程安全? AFAIK,其文档没有提及线程安全性。


In the Go programming language, is bytes.Buffer thread-safe? AFAIK, its documentation does not mention thread safety.

解决方案

No.

The Go documentation follows a simple rule: If it is not explicitly stated that concurrent access to something is safe, it is not.

这篇关于Go bytes.Buffer线程安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆