EMILUA(3em)
π NAME π
okay so bestie, welcome to the Emilua reference page for EMILUA(3em) β¨ β the NAME is Emilua - Lua execution engine, and yes this is the main character π.
β¨ FUNCTIONS β¨
π new() β pipe.read_stream
new() β pipe.read_stream
new() (1)
new(fd: file_descriptor) (2)
new()(1)β default constructor. No args, just vibes π«Ά.new(fd: file_descriptor)(2)β converts a file descriptor into a pipe end. π¦
πΈ close(self)
Closes the pipe, periodt. It forwards the call to the Boost.Asio function with the same name β here's the doc link: <https://www.boost.org/doc/libs/1_79_0/doc/html/boost_asio/reference/basic_readable_pipe/close/overload2.html>.
Any asynchronous read operations will be cancelled immediately, and will complete with the boost::asio::error::operation_aborted error.
π¦ cancel(self)
Cancels all asynchronous operations associated with the pipe. Again, it forwards the call to the Boost.Asio function with the same name: <https://www.boost.org/doc/libs/1_79_0/doc/html/boost_asio/reference/basic_readable_pipe/cancel/overload2.html>.
This function causes all outstanding asynchronous read operations to finish immediately, and the handlers for cancelled operations will be passed the boost::asio::error::operation_aborted error.
π
assign(self, fd: file_descriptor)
Assigns an existing native pipe to self. That's the whole assignment, no cap.
β release(self) β file_descriptor
Releases ownership of the native descriptor implementation. It forwards the call to the Boost.Asio function with the same name: <https://www.boost.org/doc/libs/1_80_0/doc/html/boost_asio/reference/basic_readable_pipe/release/overload2.html>.
This function causes all outstanding asynchronous read operations to finish immediately, and the handlers for cancelled operations will be passed the boost::asio::error::operation_aborted error. Ownership of the native pipe is then transferred to the caller.
π₯ read_some(self, buffer: byte_span) β integer
Reads data from the pipe and blocks the current fiber until it completes or errs. Returns the number of bytes read. Lowkey iconic.
πΈ PROPERTIES πΈ
π§ is_open: boolean
Whether the pipe is open. That's the vibe check, bestie. π¦
okay bestie, that's the whole page π source/version: Emilua 0.12.1-nixpkgs1; date: 1980-01-01. mwah, bye πβ¨
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms