Commit d293272d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 44166efa
// Copyright (C) 2017-2018 Nexedi SA and Contributors.
// Copyright (C) 2017-2021 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
......
......@@ -36,6 +36,8 @@ import (
// deadline - result in the same signal to work being done under context,
// Canceled treats both context.Canceled and context.DeadlineExceeded as errors
// indicating context cancellation.
//
// XXX naming -> IsCanceled?
func Canceled(err error) bool {
switch {
case err == nil:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment