func FromCanceller()

in ctxtool/cancel.go [78:83]


func FromCanceller(c canceller) context.Context {
	if ctx, ok := c.(context.Context); ok {
		return ctx
	}
	return cancelContext{c}
}