blob: f031c19d1d81426e2226b8aa12df90e8561fe2da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "priority_flush_token.h"
namespace proton {
PriorityFlushToken::PriorityFlushToken(std::promise<void> promise)
: _promise(std::move(promise))
{
}
PriorityFlushToken::~PriorityFlushToken()
{
_promise.set_value();
}
}
|