package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Feb 27, 2019
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
*
- sync.Pool是一个可以存或取的临时对象集合; 可以安全被多个线程同时使用,保证线程安全;sync.Pool中保存的任何项都可能随时不做通知的释放掉,所以不适合用于像socket长连接或数据库连接池。
- sync.Pool主要用途是增加临时对象的重用率,减少GC负担。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.