mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 09:30:45 +00:00
Implement missing future<void> specializations
This commit is contained in:
15
reactor.hh
15
reactor.hh
@@ -409,6 +409,14 @@ promise<T>::get_future()
|
||||
return future<T>(_state);
|
||||
}
|
||||
|
||||
inline
|
||||
future<void>
|
||||
promise<void>::get_future()
|
||||
{
|
||||
assert(!_state->_future);
|
||||
return future<void>(_state);
|
||||
}
|
||||
|
||||
using accept_result = std::tuple<pollable_fd, socket_address>;
|
||||
|
||||
struct listen_options {
|
||||
@@ -815,7 +823,12 @@ void future_state<T>::make_ready() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
inline
|
||||
void future_state<void>::make_ready() {
|
||||
if (_task) {
|
||||
the_reactor.add_task(std::move(_task));
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
future<temporary_buffer<CharType>> read_until(size_t limit, const CharType* eol, size_t eol_len);
|
||||
|
||||
Reference in New Issue
Block a user