clang-tools  12.0.0git
Classes | Namespaces | Typedefs | Functions
Cancellation.h File Reference
#include "support/Context.h"
#include "llvm/Support/Error.h"
#include <functional>
#include <system_error>
Include dependency graph for Cancellation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  clang::clangd::CancelledError
 Conventional error when no result is returned due to cancellation. More...


 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//


using clang::clangd::Canceler = std::function< void()>
 A canceller requests cancellation of a task, when called. More...


std::pair< Context, Canceler > clang::clangd::cancelableTask (int Reason=1)
 Defines a new task whose cancellation may be requested. More...
int clang::clangd::isCancelled (const Context &Ctx=Context::current())
 If the current context is within a cancelled task, returns the reason. More...