- 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)
推薦閱讀
- 極簡算法史:從數(shù)學(xué)到機(jī)器的故事
- C程序設(shè)計(jì)簡明教程(第二版)
- Java加密與解密的藝術(shù)(第2版)
- 云原生Spring實(shí)戰(zhàn)
- Mastering Scientific Computing with R
- Mastering LibGDX Game Development
- SAS數(shù)據(jù)統(tǒng)計(jì)分析與編程實(shí)踐
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)
- C語言程序設(shè)計(jì)
- MySQL從入門到精通(軟件開發(fā)視頻大講堂)
- Solr Cookbook(Third Edition)
- Programming with CodeIgniterMVC
- ArcGIS for Desktop Cookbook
- Java EE 7 with GlassFish 4 Application Server
- 零基礎(chǔ)學(xué)Java第2版