package
1.0.4
Repository: https://github.com/exercisecoding/template.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
WithShutdownCallbacks 需要实现的方法.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

Option 典型的Option 设计模式.
ShutdownCallback 采用context.Context来控制超时,不是使用time.After是因为 - 超时的本质上是使用这个回调的人控制 - 我们还希望用户知道,他的回调必须要在一定时间内处理完毕,而且必须显示处理超时错误.