- Building Microservices with Go
- Nic Jackson
- 57字
- 2021-07-15 17:28:05
WithDeadline
The WithDeadline method returns a copy of the parent context that expires after the current time is greater than deadline. At this point, the context's Done channel is closed and the resources associated are released. It also passes back a CancelFunc method that allows manual cancellation of the context:
func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc)
推薦閱讀
- R語言經典實例(原書第2版)
- C語言程序設計基礎與實驗指導
- 實戰低代碼
- Python程序設計案例教程
- 小程序,巧運營:微信小程序運營招式大全
- C語言程序設計
- RESTful Web Clients:基于超媒體的可復用客戶端
- Natural Language Processing with Python Quick Start Guide
- 大規模語言模型開發基礎與實踐
- R語言實戰(第2版)
- Go Systems Programming
- Python Penetration Testing Essentials
- JavaScript Mobile Application Development
- C語言程序設計
- SQL Server 2014數據庫設計與開發教程(微課版)