- Building Microservices with Go
- Nic Jackson
- 47字
- 2021-07-15 17:28:05
WithTimeout
The WithTimeout method is similar to WithDeadline except you pass it a duration for which the Context type should exist. Once this duration has elapsed, the Done channel is closed and the resources associated with the context are released:
func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc)
推薦閱讀
- Mastering JavaScript Object-Oriented Programming
- Maven Build Customization
- Hands-On Data Structures and Algorithms with JavaScript
- Vue.js 3.x從入門到精通(視頻教學版)
- Learn Swift by Building Applications
- 重學Java設計模式
- Selenium Testing Tools Cookbook(Second Edition)
- HTML5從入門到精通(第4版)
- SpringBoot從零開始學(視頻教學版)
- Hands-On Robotics Programming with C++
- Get Your Hands Dirty on Clean Architecture
- ANSYS FLUENT 16.0超級學習手冊
- Oracle SOA Suite 12c Administrator's Guide
- Python程序設計:基礎與實踐
- Build Your Own PaaS with Docker