summaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/common/waitable.h
blob: 16ce9a1f6facdb2d1f0b7c5bdc98682d8c427432 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <memory>

namespace config {

/**
 * A Waitable is a component that can be used to wait for some event to happen.
 */
struct Waitable
{
    virtual bool wait(uint64_t timeoutInMillis) = 0;
    virtual ~Waitable() {}
};

} // namespace config