核心接口:

image.png

对外暴露的方法:

image.png
方法依照返回体,可分为2类:

返回一个Context

Background()
TODO()
WithValue()

返回一个Context和取消方法

WithCancel()
WithDeadline() / WithTimeout()