A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::uv Namespace Reference

Classes

class  UvExecutor
 

Functions

absl::Status UvError (int code, std::string_view operation)
 The status a failed libuv call deserves.
 
template<typename T >
absl::StatusOr< T > RunOnUv (std::function< absl::StatusOr< T >()> operation, const void *order_key=nullptr)
 Run operation on the loop thread and wait for its result.
 
absl::Status RunStatusOnUv (std::function< absl::Status()> operation, const void *order_key=nullptr)
 

Function Documentation

◆ RunOnUv()

template<typename T >
absl::StatusOr< T > a11::uv::RunOnUv ( std::function< absl::StatusOr< T >()>  operation,
const void *  order_key = nullptr 
)

Run operation on the loop thread and wait for its result.

Parameters
operationWork to execute on the loop thread.
order_keySee UvExecutor::Post. Pass the connection whenever the operation touches one, preserving its order with socket writes. HttpTransport::RunOnUvForConnection supplies it automatically.

◆ RunStatusOnUv()

absl::Status a11::uv::RunStatusOnUv ( std::function< absl::Status()>  operation,
const void *  order_key = nullptr 
)
inline

◆ UvError()

absl::Status a11::uv::UvError ( int  code,
std::string_view  operation 
)
inline

The status a failed libuv call deserves.