97ffd6cce8
This allows two things: - The caller to set a shorter timeout than previously hardcoded 30s. In `buildctl` reduce the timeout to 5s. Since the existing timeout has gone callers will need to arrange to pass one themselves. - The caller can arrange for the context to be cancelled for other reasons, use this in `buildctl` to plumb through the Ctrl-C handling, meaning that `buildctl` now exits almost immediately on Ctrl-C instead of after several seconds. Signed-off-by: Ian Campbell <ijc@docker.com> |
||
---|---|---|
.. | ||
main.go |