Closed
Description
Golang has standard library named "context"
https://golang.org/pkg/context/
This library widely used in golang libraries to implement
- cancellation of calculation tree
- timeout of calculation tree
Please read about context and how it used.
Golang standard libraries does not use context directly only because keep compatibility of API since golang 1.0.
But in some libraries you can find usage of context, for instance here:
https://golang.org/pkg/database/sql/#Conn.QueryContext
I propose to get rid of DeadlineIO struct and rewrite driver API to context usage.
It's more explicit and more golang-way, than actual implementation