#include "lix/libutil/result.hh"
#include "lix/libutil/signals.hh"
#include <future>
#include <kj/async-io.h>
#include <kj/async.h>
Go to the source code of this file.
|
|
AsyncContext & | nix::AIO () |
| |
|
void | nix::detail::materializeResult (Result< void > r) |
| |
|
template<typename T > |
| T | nix::detail::materializeResult (Result< T > r) |
| |
|
template<typename T > |
| T | nix::detail::runAsyncUnwrap (T t) |
| |
|
template<typename T > |
| T | nix::detail::runAsyncUnwrap (Result< T > t) |
| |
|
auto | nix::detail::runAsyncInNewThread (std::invocable< AsyncIoRoot & > auto fn) |
| |
◆ LIX_RUN_ASYNC_IN_NEW_THREAD
| #define LIX_RUN_ASYNC_IN_NEW_THREAD |
( |
| ... | ) |
|
Value: ::nix::detail::runAsyncInNewThread([&](AsyncIoRoot & AIOROOT) { \
return AIOROOT.blockOn(__VA_ARGS__); \
})